summaryrefslogtreecommitdiff
path: root/hostnix/creep/hardware-configuration.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-03-12 10:46:11 +1100
committerJoe Mou <dev@mou.fo>2024-03-12 10:46:14 +1100
commitc0b3feaa374954bb406e356b996e61ad88c4a607 (patch)
treeca49db9f7e31fa9ddfecfba5bf2cc64027a633eb /hostnix/creep/hardware-configuration.nix
parentf88185084de03efeff4f8b2206c4d69b5b706ec4 (diff)
creep: add swap
Contravenes guidance to avoid edits to hardware-configuration.nix
Diffstat (limited to 'hostnix/creep/hardware-configuration.nix')
-rw-r--r--hostnix/creep/hardware-configuration.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/hostnix/creep/hardware-configuration.nix b/hostnix/creep/hardware-configuration.nix
index ed21088..0dce739 100644
--- a/hostnix/creep/hardware-configuration.nix
+++ b/hostnix/creep/hardware-configuration.nix
@@ -23,7 +23,11 @@
fsType = "vfat";
};
- swapDevices = [ ];
+ swapDevices = [ {
+ device = "/var/lib/swap";
+ size = 4 * 1024;
+ randomEncryption.enable = true;
+ } ];
# 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