mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
23 lines
395 B
Nix
23 lines
395 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
systemd = {
|
|
|
|
package = lib.mkDefault (pkgs.systemd.override { withHomed = false; });
|
|
sleep.extraConfig = ''
|
|
HibernateDelaySec=2h
|
|
'';
|
|
oomd = {
|
|
enable = true;
|
|
enableSystemSlice = true;
|
|
enableRootSlice = true;
|
|
enableUserSlices = true;
|
|
};
|
|
watchdog = {
|
|
runtimeTime = "30s";
|
|
rebootTime = "10m";
|
|
};
|
|
};
|
|
|
|
}
|