diff options
| author | Mel <mel@rnrd.eu> | 2026-09-07 18:27:16 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-09-07 18:27:25 +0200 |
| commit | 67db9f0cfe25e18a43dd29e6c5db4a4ac906f170 (patch) | |
| tree | 543d7305c6aa6c8a33827d229b5af4f54dead3b3 /machines/lapin/devices.nix | |
| parent | 1f0694dad451e68668c93bc737a82058b1c7b764 (diff) | |
| download | network-67db9f0cfe25e18a43dd29e6c5db4a4ac906f170.tar.zst network-67db9f0cfe25e18a43dd29e6c5db4a4ac906f170.zip | |
Set 'vm.mmap_rnd_bits' to 18 for Lapin
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/lapin/devices.nix')
| -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 |
