mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-15 20:25:06 +01:00
random swap related changes without thinking
This commit is contained in:
parent
9427f3dc3e
commit
c9d3c34864
1 changed files with 5 additions and 2 deletions
|
|
@ -96,6 +96,9 @@ in
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_forward" = 1;
|
"net.ipv4.ip_forward" = 1;
|
||||||
"net.ipv6.conf.all.forwarding" = 1;
|
"net.ipv6.conf.all.forwarding" = 1;
|
||||||
|
# 100 seems to be a good value for SSDs https://chrisdown.name/2018/01/02/in-defence-of-swap.html,
|
||||||
|
# as anon and file pages are equally expensive so 100 balances them out.
|
||||||
|
"vm.swappiness" = 100;
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
|
|
@ -166,8 +169,8 @@ in
|
||||||
services.earlyoom = {
|
services.earlyoom = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNotifications = true;
|
enableNotifications = true;
|
||||||
# as soon as it starts swapping its SO over
|
# as soon as it starts swapping its SO over (hm)
|
||||||
freeSwapThreshold = 100;
|
freeSwapThreshold = 90;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Shows notification for `net.nuetzlich.SystemNotifications.Notify` D-Bus messages
|
# Shows notification for `net.nuetzlich.SystemNotifications.Notify` D-Bus messages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue