diff options
Diffstat (limited to 'systems/fu')
| -rw-r--r-- | systems/fu/config.nix | 51 | ||||
| -rw-r--r-- | systems/fu/spec.nix | 3 |
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"; +} |
