diff --git a/nixos/module/kernel.nix b/nixos/module/kernel.nix index 29eeaad..58cecaa 100644 --- a/nixos/module/kernel.nix +++ b/nixos/module/kernel.nix @@ -139,7 +139,8 @@ environment.etc."modprobe.d/nixos.conf".text = ""; systemd.tmpfiles.rules = [ - "w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always" - "w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer" + "w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always" + "w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer" + "w- /sys/kernel/mm/transparent_hugepage/shmem_enabled - - - - within_size" ]; }