From 74e7882728702222e49c1c14d76c915863f0b316 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 16 Apr 2025 20:38:23 +0200 Subject: Disable docker and create zram swap space for fourmi Signed-off-by: Mel --- machines/fourmi/default.nix | 4 +++- machines/fourmi/devices.nix | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'machines') 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; -- cgit 1.4.1