From 67db9f0cfe25e18a43dd29e6c5db4a4ac906f170 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 7 Sep 2026 18:27:16 +0200 Subject: Set 'vm.mmap_rnd_bits' to 18 for Lapin Signed-off-by: Mel --- machines/lapin/devices.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'machines/lapin') diff --git a/machines/lapin/devices.nix b/machines/lapin/devices.nix index 239242a..abc7a18 100644 --- a/machines/lapin/devices.nix +++ b/machines/lapin/devices.nix @@ -4,6 +4,14 @@ boot = { loader.systemd-boot.enable = true; kernelModules = [ ]; + + kernel.sysctl = { + # nixos likes 24 as the default here, but lapin + # somehow only allows upto 18. + # TODO: check why it's stuck at 18 in the kernel config. + # `zcat /proc/config.gz | grep MMAP_RND_BITS` + "vm.mmap_rnd_bits" = 18; + }; }; # testing with replacing swap partitions -- cgit v1.3.1