about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-24 16:02:55 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-24 16:02:55 +0100
commitcba5a2b170c5a2120164bd20029c41254afed31d (patch)
tree8b77ddcbfab8efc6b657c6322a957903998a18de /nix-conf
parent409fed693a3c773e75001ea2a645412b2b07b37c (diff)
downloaddotfiles-cba5a2b170c5a2120164bd20029c41254afed31d.tar.gz
Add swapfile
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/machines/djmuk1/configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nix-conf/machines/djmuk1/configuration.nix b/nix-conf/machines/djmuk1/configuration.nix
index 3ae99c5..be45319 100644
--- a/nix-conf/machines/djmuk1/configuration.nix
+++ b/nix-conf/machines/djmuk1/configuration.nix
@@ -81,5 +81,10 @@
 
   i18n.defaultLocale = "en_GB.UTF-8";
 
+  swapDevices = [ {
+    device = "/var/lib/swapfile";
+    size = 2*1024;
+  } ];
+
   system.stateVersion = "23.11";
 }