diff --git a/configuration.nix b/configuration.nix index 898e1c4..e4974ee 100644 --- a/configuration.nix +++ b/configuration.nix @@ -364,6 +364,11 @@ services.irqbalance.enable = true; services.earlyoom.enable = true; + zramSwap = { + enable = true; + priority = 100; + }; + # Power management for laptop services.logind = { settings = { diff --git a/hosts/framework-work/hardware-configuration.nix b/hosts/framework-work/hardware-configuration.nix index bea50bd..e0e2732 100644 --- a/hosts/framework-work/hardware-configuration.nix +++ b/hosts/framework-work/hardware-configuration.nix @@ -25,6 +25,7 @@ fileSystems."/" = { device = "/dev/disk/by-uuid/dfaa8624-c14f-4a72-8c5a-193d8294e5cb"; fsType = "ext4"; + options = [ "noatime" ]; }; fileSystems."/boot" = { @@ -39,6 +40,7 @@ swapDevices = [ { device = "/dev/disk/by-uuid/bd8d2630-7c9b-4ec1-8a00-b1a801003732"; + priority = -10; } ];