summaryrefslogtreecommitdiff
path: root/machines/lapin/devices.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/lapin/devices.nix')
-rw-r--r--machines/lapin/devices.nix8
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