diff options
Diffstat (limited to 'machines/fourmi/devices.nix')
| -rw-r--r-- | machines/fourmi/devices.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/machines/fourmi/devices.nix b/machines/fourmi/devices.nix index 61f6d1d..de872a7 100644 --- a/machines/fourmi/devices.nix +++ b/machines/fourmi/devices.nix @@ -21,6 +21,13 @@ kernelModules = [ "wireguard" ]; }; + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 100; + }; + # apply rpi4-specific device tree from nixos-hardware. hardware = { raspberry-pi."4".apply-overlays-dtmerge.enable = true; |
