From 085fb5b9c9347aae2cf502a8e0179c0d731e9e68 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Wed, 5 Feb 2025 10:19:41 -0500 Subject: glados: allocate swapfile --- systems/glados/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'systems/glados/default.nix') diff --git a/systems/glados/default.nix b/systems/glados/default.nix index cf1ea9f..a8e063c 100644 --- a/systems/glados/default.nix +++ b/systems/glados/default.nix @@ -55,6 +55,17 @@ fwupd.enable = true; }; + swapDevices = [ + { + # WARN: Don't set size! + # + # We're on btrfs and the NixOS module won't handle it properly. + # Make it 4GB or so manually with + # `btrfs filesystem mkswapfile --size 4g --uuid clear /swap/swapfile` in it's own subvol + device = "/swap/swapfile"; + } + ]; + system.stateVersion = "23.11"; traits = { -- cgit v1.2.3