diff options
| author | seth <[email protected]> | 2024-01-07 18:13:53 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-07 18:13:59 -0500 |
| commit | 2b354838edecc32c59d3c7ddf35e6cfe06cfe268 (patch) | |
| tree | ee0b5420f0b55912de13dafb65da931bdf713798 /systems/glados | |
| parent | a22a2b43128c008a89c4db79f3afa50699f3324f (diff) | |
tree-wide: localize imports
i shouldn't be editing systems/default.nix to remove a module only for
glados
Diffstat (limited to 'systems/glados')
| -rw-r--r-- | systems/glados/boot.nix | 3 | ||||
| -rw-r--r-- | systems/glados/default.nix | 4 | ||||
| -rw-r--r-- | systems/glados/nvidia.nix | 10 |
3 files changed, 17 insertions, 0 deletions
diff --git a/systems/glados/boot.nix b/systems/glados/boot.nix index e0326a0..a7ac843 100644 --- a/systems/glados/boot.nix +++ b/systems/glados/boot.nix @@ -1,8 +1,11 @@ { lib, pkgs, + inputs, ... }: { + imports = [inputs.lanzaboote.nixosModules.lanzaboote]; + environment.systemPackages = with pkgs; [ sbctl tpm2-tss diff --git a/systems/glados/default.nix b/systems/glados/default.nix index 144db6d..3271515 100644 --- a/systems/glados/default.nix +++ b/systems/glados/default.nix @@ -6,6 +6,8 @@ imports = [ ./boot.nix ./hardware-configuration.nix + ./nvidia.nix + self.nixosModules.desktop self.nixosModules.gnome ]; @@ -45,6 +47,8 @@ remotePlay.openFirewall = true; }; + system.stateVersion = "23.11"; + zramSwap = { enable = true; algorithm = "zstd"; diff --git a/systems/glados/nvidia.nix b/systems/glados/nvidia.nix new file mode 100644 index 0000000..afba1b2 --- /dev/null +++ b/systems/glados/nvidia.nix @@ -0,0 +1,10 @@ +{inputs, ...}: { + imports = with inputs; [ + nixos-hardware.nixosModules.common-gpu-nvidia-nonprime + nixos-hardware.nixosModules.common-pc-ssd + ]; + + hardware.nvidia = { + modesetting.enable = true; + }; +} |
