summaryrefslogtreecommitdiff
path: root/hosts/sif/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-15 22:24:51 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-15 22:24:56 +0100
commitcbece5e2ab15670c31f76e194a82516490760b16 (patch)
treeb9caf601eb3f8a5e95dd959b7baa26a2d6f3f814 /hosts/sif/default.nix
parent52ee4685575fac5159b42ee6eb0612bd8a7bf68b (diff)
downloadnixos-cbece5e2ab15670c31f76e194a82516490760b16.tar
nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.gz
nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.bz2
nixos-cbece5e2ab15670c31f76e194a82516490760b16.tar.xz
nixos-cbece5e2ab15670c31f76e194a82516490760b16.zip
...
Diffstat (limited to 'hosts/sif/default.nix')
-rw-r--r--hosts/sif/default.nix27
1 files changed, 13 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 = {