diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/sif/default.nix | 27 | ||||
-rw-r--r-- | hosts/sif/hw.nix | 3 |
2 files changed, 16 insertions, 14 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 6dc6f3a9..def59191 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -63,15 +63,20 @@ in { | |||
63 | plymouth.enable = true; | 63 | plymouth.enable = true; |
64 | 64 | ||
65 | kernelPackages = pkgs.linuxPackages_latest; | 65 | kernelPackages = pkgs.linuxPackages_latest; |
66 | extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; | ||
67 | kernelModules = ["v4l2loopback"]; | ||
68 | kernelPatches = [ | 66 | kernelPatches = [ |
69 | { name = "edac-config"; | 67 | { name = "edac-config"; |
70 | patch = null; | 68 | patch = null; |
71 | extraConfig = '' | 69 | extraStructuredConfig = with lib.kernel; { |
72 | EDAC y | 70 | EDAC = yes; |
73 | EDAC_IE31200 y | 71 | EDAC_IE31200 = yes; |
74 | ''; | 72 | }; |
73 | } | ||
74 | { name = "zswap-default"; | ||
75 | patch = null; | ||
76 | extraStructuredConfig = with lib.kernel; { | ||
77 | ZSWAP_DEFAULT_ON = yes; | ||
78 | # ZSWAP_SHRINKER_DEFAULT_ON = yes; | ||
79 | }; | ||
75 | } | 80 | } |
76 | ]; | 81 | ]; |
77 | 82 | ||
@@ -440,7 +445,7 @@ in { | |||
440 | }; | 445 | }; |
441 | 446 | ||
442 | xserver = { | 447 | xserver = { |
443 | enable = true; | 448 | enable = false; |
444 | 449 | ||
445 | xkb = { | 450 | xkb = { |
446 | layout = "us"; | 451 | layout = "us"; |
@@ -617,7 +622,7 @@ in { | |||
617 | nvidia = { | 622 | nvidia = { |
618 | open = true; | 623 | open = true; |
619 | modesetting.enable = true; | 624 | modesetting.enable = true; |
620 | powerManagement.enable = true; | 625 | powerManagement.enable = false; |
621 | prime = { | 626 | prime = { |
622 | nvidiaBusId = "PCI:1:0:0"; | 627 | nvidiaBusId = "PCI:1:0:0"; |
623 | intelBusId = "PCI:0:2:0"; | 628 | intelBusId = "PCI:0:2:0"; |
@@ -707,12 +712,6 @@ in { | |||
707 | dconf.enable = true; | 712 | dconf.enable = true; |
708 | }; | 713 | }; |
709 | 714 | ||
710 | zramSwap = { | ||
711 | enable = true; | ||
712 | algorithm = "zstd"; | ||
713 | writebackDevice = "/dev/disk/by-label/swap"; | ||
714 | }; | ||
715 | |||
716 | services.pcscd.enable = true; | 715 | services.pcscd.enable = true; |
717 | 716 | ||
718 | sops.secrets.gkleen-rclone = { | 717 | sops.secrets.gkleen-rclone = { |
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix index d1fb2934..1bcf0261 100644 --- a/hosts/sif/hw.nix +++ b/hosts/sif/hw.nix | |||
@@ -19,6 +19,9 @@ | |||
19 | "/var/lib/sops-nix".neededForBoot = true; | 19 | "/var/lib/sops-nix".neededForBoot = true; |
20 | "/var/lib/systemd".neededForBoot = true; | 20 | "/var/lib/systemd".neededForBoot = true; |
21 | }; | 21 | }; |
22 | swapDevices = [ | ||
23 | { label = "swap"; } | ||
24 | ]; | ||
22 | # system.etc.overlay.enable = false; | 25 | # system.etc.overlay.enable = false; |
23 | 26 | ||
24 | boot.initrd.systemd.packages = [ | 27 | boot.initrd.systemd.packages = [ |