diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-12-25 19:30:17 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-12-25 19:30:17 +0100 |
| commit | 929cfbf0d4620892e6ad1231c32c9c7b8c9265c4 (patch) | |
| tree | bdd54f8db8d1bfca5157ae0b95783314f4909518 /hosts | |
| parent | ab1a8a443128ec38bf71b64c654e35f10216fd86 (diff) | |
| download | nixos-929cfbf0d4620892e6ad1231c32c9c7b8c9265c4.tar nixos-929cfbf0d4620892e6ad1231c32c9c7b8c9265c4.tar.gz nixos-929cfbf0d4620892e6ad1231c32c9c7b8c9265c4.tar.bz2 nixos-929cfbf0d4620892e6ad1231c32c9c7b8c9265c4.tar.xz nixos-929cfbf0d4620892e6ad1231c32c9c7b8c9265c4.zip | |
...flakes
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/sif/default.nix | 20 | ||||
| -rw-r--r-- | hosts/surtr/default.nix | 11 |
2 files changed, 3 insertions, 28 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 258a83f7..2dcf5459 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
| @@ -13,7 +13,7 @@ in { | |||
| 13 | imports = with flake.nixosModules.systemProfiles; [ | 13 | imports = with flake.nixosModules.systemProfiles; [ |
| 14 | ./hw.nix | 14 | ./hw.nix |
| 15 | ./email ./libvirt ./greetd | 15 | ./email ./libvirt ./greetd |
| 16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines niri-unstable networkmanager lanzaboote | 16 | tmpfs-root bcachefs initrd-all-crypto-modules default-locale openssh rebuild-machines niri-unstable networkmanager lanzaboote zswap |
| 17 | flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 | 17 | flakeInputs.nixos-hardware.nixosModules.lenovo-thinkpad-p1 |
| 18 | flakeInputs.nixVirt.nixosModules.default | 18 | flakeInputs.nixVirt.nixosModules.default |
| 19 | ]; | 19 | ]; |
| @@ -58,23 +58,7 @@ in { | |||
| 58 | 58 | ||
| 59 | plymouth.enable = true; | 59 | plymouth.enable = true; |
| 60 | 60 | ||
| 61 | kernelPackages = pkgs.linuxPackages_latest; | 61 | kernelPackages = pkgs.linuxPackages_6_18; |
| 62 | kernelPatches = [ | ||
| 63 | { name = "edac-config"; | ||
| 64 | patch = null; | ||
| 65 | structuredExtraConfig = with lib.kernel; { | ||
| 66 | EDAC = yes; | ||
| 67 | EDAC_IE31200 = yes; | ||
| 68 | }; | ||
| 69 | } | ||
| 70 | { name = "zswap-default"; | ||
| 71 | patch = null; | ||
| 72 | structuredExtraConfig = with lib.kernel; { | ||
| 73 | ZSWAP_DEFAULT_ON = yes; | ||
| 74 | ZSWAP_SHRINKER_DEFAULT_ON = yes; | ||
| 75 | }; | ||
| 76 | } | ||
| 77 | ]; | ||
| 78 | consoleLogLevel = 3; | 62 | consoleLogLevel = 3; |
| 79 | kernelParams = [ | 63 | kernelParams = [ |
| 80 | "quiet" | 64 | "quiet" |
diff --git a/hosts/surtr/default.nix b/hosts/surtr/default.nix index 4a9bd6fe..815cf41a 100644 --- a/hosts/surtr/default.nix +++ b/hosts/surtr/default.nix | |||
| @@ -4,7 +4,7 @@ with lib; | |||
| 4 | 4 | ||
| 5 | { | 5 | { |
| 6 | imports = with flake.nixosModules.systemProfiles; [ | 6 | imports = with flake.nixosModules.systemProfiles; [ |
| 7 | tmpfs-root qemu-guest openssh rebuild-machines zfs | 7 | tmpfs-root qemu-guest openssh rebuild-machines zfs zswap |
| 8 | ./zfs.nix ./dns ./tls ./http ./bifrost ./matrix ./postgresql | 8 | ./zfs.nix ./dns ./tls ./http ./bifrost ./matrix ./postgresql |
| 9 | ./prometheus ./email ./vpn ./borg.nix ./etebase ./immich.nix | 9 | ./prometheus ./email ./vpn ./borg.nix ./etebase ./immich.nix |
| 10 | ./paperless.nix ./hledger.nix ./audiobookshelf.nix ./kimai.nix | 10 | ./paperless.nix ./hledger.nix ./audiobookshelf.nix ./kimai.nix |
| @@ -28,15 +28,6 @@ with lib; | |||
| 28 | zfs.devNodes = "/dev"; # /dev/vda2 does not show up in /dev/disk/by-id | 28 | zfs.devNodes = "/dev"; # /dev/vda2 does not show up in /dev/disk/by-id |
| 29 | 29 | ||
| 30 | kernelModules = ["ptp_kvm"]; | 30 | kernelModules = ["ptp_kvm"]; |
| 31 | kernelPatches = [ | ||
| 32 | { name = "zswap-default"; | ||
| 33 | patch = null; | ||
| 34 | structuredExtraConfig = with lib.kernel; { | ||
| 35 | ZSWAP_DEFAULT_ON = yes; | ||
| 36 | ZSWAP_SHRINKER_DEFAULT_ON = yes; | ||
| 37 | }; | ||
| 38 | } | ||
| 39 | ]; | ||
| 40 | }; | 31 | }; |
| 41 | 32 | ||
| 42 | fileSystems = { | 33 | fileSystems = { |
