diff options
Diffstat (limited to 'machines/lapin')
| -rw-r--r-- | machines/lapin/devices.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
