diff options
| -rw-r--r-- | machines/fourmi/default.nix | 4 | ||||
| -rw-r--r-- | machines/fourmi/devices.nix | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/machines/fourmi/default.nix b/machines/fourmi/default.nix index 25269d2..091391a 100644 --- a/machines/fourmi/default.nix +++ b/machines/fourmi/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { imports = [ @@ -22,6 +22,8 @@ }; }; + virtualisation.docker.enable = lib.mkForce false; + # extra packages for dealing with the device # hardware. environment.systemPackages = with pkgs; [ 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; |
