about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-08-21 23:38:32 +0200
committerBaitinq <[email protected]>2025-08-21 23:38:32 +0200
commit22d9c5de2e7f29c5c41e7c2efc94c6400c7c859b (patch)
treeac2c849d1dd92c241822e5dd06909cedc79c92b1
parentHardware: PC: Set high refresh rate automatically (diff)
downloadnixos-config-22d9c5de2e7f29c5c41e7c2efc94c6400c7c859b.tar.gz
nixos-config-22d9c5de2e7f29c5c41e7c2efc94c6400c7c859b.tar.bz2
nixos-config-22d9c5de2e7f29c5c41e7c2efc94c6400c7c859b.zip
Hardware: PC: Add swapfile
-rw-r--r--hardware/pc/disks.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/hardware/pc/disks.nix b/hardware/pc/disks.nix
index 5e9487b..7a864b9 100644
--- a/hardware/pc/disks.nix
+++ b/hardware/pc/disks.nix
@@ -120,7 +120,10 @@ in {
       options = ["compress-force=zstd"];
     };
 
-    swapDevices = [];
+    swapDevices = [{
+      device = "/nix/swapfile";
+      size = 16*1024;
+    }];
 
     services.btrfs.autoScrub.enable = true;