From 91d54bd9ac8353b4546c2bd24018ecc3591f3648 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru> Date: Mon, 10 Mar 2025 22:52:11 +0300 Subject: [PATCH] try to configure swapfile --- hosts/home/hardware-configuration/default.nix | 1 + hosts/home/hardware-configuration/manual.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 hosts/home/hardware-configuration/manual.nix diff --git a/hosts/home/hardware-configuration/default.nix b/hosts/home/hardware-configuration/default.nix index 7bc9170..08a5ca5 100644 --- a/hosts/home/hardware-configuration/default.nix +++ b/hosts/home/hardware-configuration/default.nix @@ -3,6 +3,7 @@ { imports = [ ./generated.nix # Include the results of the hardware scan. + ./manual.nix ./nfs.nix ]; diff --git a/hosts/home/hardware-configuration/manual.nix b/hosts/home/hardware-configuration/manual.nix new file mode 100644 index 0000000..2b89c04 --- /dev/null +++ b/hosts/home/hardware-configuration/manual.nix @@ -0,0 +1,12 @@ +{ + swapDevices = [ + { + device = "/var/lib/swapfile"; + size = 64 * 1024; + } + ]; + + boot.kernelParams = [ + "resume=UUID=969c5f68-631d-4429-b81b-0d81e050449b" + ]; +}