From eb076bbd152ce0778973dd2bdff41c487091510d Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 7 Nov 2024 22:13:06 +0200 Subject: [PATCH] Switch to swapfile on Mirkwood --- hosts/Mirkwood/configuration.nix | 5 +++++ hosts/Mirkwood/hardware-configuration.nix | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/Mirkwood/configuration.nix b/hosts/Mirkwood/configuration.nix index 1bdd71de..0e3a4151 100644 --- a/hosts/Mirkwood/configuration.nix +++ b/hosts/Mirkwood/configuration.nix @@ -8,4 +8,9 @@ networking.hostName = "Mirkwood"; boot.initrd.kernelModules = [ "amdgpu" ]; + + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 8 * 1024; + }]; } diff --git a/hosts/Mirkwood/hardware-configuration.nix b/hosts/Mirkwood/hardware-configuration.nix index fa60be88..494acf85 100644 --- a/hosts/Mirkwood/hardware-configuration.nix +++ b/hosts/Mirkwood/hardware-configuration.nix @@ -29,9 +29,6 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = - [{ device = "/dev/disk/by-uuid/dba8a94b-d7b6-4ac1-a0bb-82d6538ff331"; }]; - # 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 # still possible to use this option, but it's recommended to use it in conjunction