mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-05-21 19:18:46 +02:00
21 lines
384 B
Nix
21 lines
384 B
Nix
{ ... }:
|
|
|
|
{
|
|
# fixes run0 failing to execute
|
|
security.pam.services.systemd-run0 = { };
|
|
systemd = {
|
|
sleep.extraConfig = ''
|
|
HibernateDelaySec=2h
|
|
'';
|
|
oomd = {
|
|
enable = true;
|
|
enableSystemSlice = true;
|
|
enableRootSlice = true;
|
|
enableUserSlices = true;
|
|
};
|
|
watchdog = {
|
|
runtimeTime = "30s";
|
|
rebootTime = "10m";
|
|
};
|
|
};
|
|
}
|