summaryrefslogtreecommitdiff
path: root/systems/glados
diff options
context:
space:
mode:
Diffstat (limited to 'systems/glados')
-rw-r--r--systems/glados/boot.nix3
-rw-r--r--systems/glados/default.nix4
-rw-r--r--systems/glados/nvidia.nix10
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;
+ };
+}