summary refs log tree commit diff stats
path: root/hosts/thinklappi/basesystem.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/thinklappi/basesystem.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/hosts/thinklappi/basesystem.nix b/hosts/thinklappi/basesystem.nix
index 35fd908..cbcffc0 100644
--- a/hosts/thinklappi/basesystem.nix
+++ b/hosts/thinklappi/basesystem.nix
@@ -23,6 +23,8 @@
       configurationLimit = 3;
       pkiBundle = "/etc/secureboot";
     };
+    resumeDevice = "/dev/disk/by-uuid/68da1329-f5ea-4f2c-a38e-faffaaaa6b5a";
+    kernelParams = ["resume_offset=369403136"];
   };
 
   fileSystems = {
@@ -56,6 +58,11 @@
       fsType = "btrfs";
       options = ["subvol=srv" "compress-force=zstd"];
     };
+    "/swap" = {
+      device = "/dev/disk/by-label/nixos-root";
+      fsType = "btrfs";
+      options = ["subvol=swap" "noatime"];
+    };
     "/home" = {
       device = "/dev/disk/by-label/nixos-root";
       fsType = "btrfs";
@@ -72,7 +79,11 @@
     };
   };
 
-  swapDevices = [];
+  swapDevices = [
+    {
+      device = "/swap/swapfile";
+    }
+  ];
 
   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
   # (the default) this is the recommended approach. When using systemd-networkd it's