summaryrefslogtreecommitdiffstats
path: root/systems/fu
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 05:13:21 +0000
committertv <tv@krebsco.de>2026-11-23 05:13:21 +0000
commit6d2f57abdc882c9fbd7e385e3319e10c5bba703a (patch)
tree0bd80ccf18d6f6bfaf4e7f5573a15f07d7c224bb /systems/fu
parentf0d0c090744eced6b97655c0ac789983af40df43 (diff)
fu: init
Diffstat (limited to 'systems/fu')
-rw-r--r--systems/fu/config.nix51
-rw-r--r--systems/fu/spec.nix3
2 files changed, 54 insertions, 0 deletions
diff --git a/systems/fu/config.nix b/systems/fu/config.nix
new file mode 100644
index 00000000..06849ebc
--- /dev/null
+++ b/systems/fu/config.nix
@@ -0,0 +1,51 @@
+{ config, ... }: {
+ imports = [
+ ../../configs/hw/framework-13th-gen-intel.nix
+ ../../configs/initrd/sshd.nix
+ ../../configs/retiolum.nix
+ ../../configs/wiregrill.nix
+
+ ../../configs/binary-cache/client.nix
+ ../../configs/autotether.nix
+ ../../configs/earlyoom.nix
+ ../../configs/gitconfig.nix
+ ../../configs/man.nix
+ ../../configs/networkd.nix
+ ../../configs/nginx/public_html.nix
+ ];
+
+ boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
+
+ boot.initrd.luks.devices.main.device = "/dev/nvme0n1p2";
+ boot.loader.efi.canTouchEfiVariables = true;
+ boot.loader.systemd-boot.enable = true;
+
+ fileSystems."/" = {
+ device = "/dev/mapper/fuvg0-root";
+ fsType = "btrfs";
+ options = ["defaults" "noatime" "compress=zstd"];
+ };
+ fileSystems."/boot" = {
+ device = "/dev/nvme0n1p1";
+ fsType = "vfat";
+ };
+ fileSystems."/home" = {
+ device = "/dev/mapper/fuvg0-home";
+ fsType = "btrfs";
+ options = ["defaults" "noatime" "compress=zstd"];
+ };
+ fileSystems."/bku" = {
+ device = "/dev/mapper/fuvg0-bku";
+ fsType = "btrfs";
+ options = ["defaults" "noatime" "compress=zstd"];
+ };
+
+ users.groups.plugdev = {}; # https://github.com/NixOS/nixpkgs/pull/272506
+
+ krebs.build.host = config.krebs.hosts.fu;
+
+ system.stateVersion = "22.11";
+
+ zramSwap.enable = true;
+ zramSwap.swapDevices = 1;
+}
diff --git a/systems/fu/spec.nix b/systems/fu/spec.nix
new file mode 100644
index 00000000..efab0596
--- /dev/null
+++ b/systems/fu/spec.nix
@@ -0,0 +1,3 @@
+{
+ system = "x86_64-linux";
+}