From d6e73178cdaf44746bcbfb8c78e8c99f8821a234 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Feb 2025 02:28:26 +0100 Subject: Replace lapin swap partition with zram, for testing Signed-off-by: Mel --- machines/lapin/devices.nix | 9 +++++++++ machines/lapin/hardware.nix | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/machines/lapin/devices.nix b/machines/lapin/devices.nix index 4fc9610..ccf7d75 100644 --- a/machines/lapin/devices.nix +++ b/machines/lapin/devices.nix @@ -6,6 +6,15 @@ kernelModules = [ "wireguard" ]; }; + # testing with replacing swap partitions + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 50; + }; + networking = { # Network configuration is managed with networkd. useDHCP = false; diff --git a/machines/lapin/hardware.nix b/machines/lapin/hardware.nix index b33eb26..08cf82e 100644 --- a/machines/lapin/hardware.nix +++ b/machines/lapin/hardware.nix @@ -23,9 +23,7 @@ fsType = "vfat"; }; - swapDevices = - [ { device = "/dev/disk/by-uuid/15e0485e-dff2-4eb5-9a4d-12c69baa3db1"; } - ]; + swapDevices = [ ]; # 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 -- cgit 1.4.1