Following the brief mention of vm.swappiness
in https://nixos.org/nixos/manual/options.html:
I've tried setting:
boot.kernel.sysctl = { "vm.swappiness" = 0;};
Within the usual hardware-configuration.nix
. And I then did a nixos-rebuild switch
and a reboot.
However I don't see that value being set in /etc/sysctl.d/nixos.conf
?
In addition:
cat /proc/sys/vm/swappiness
60
configuration.nix
without rebooting (stateVersion18.03
fwiw). Are you sure yourhardware-configuration.nix
is included properly? – Legogris Sep 12 '19 at 08:38/etc/sysctl.d/nixos.conf
. Strange. – Chris Stryczynski Sep 12 '19 at 09:53