nixos-config/shared/systemd.nix

23 lines
395 B
Nix
Raw Normal View History

2023-12-12 17:43:16 +01:00
{ pkgs, lib, ... }:
{
systemd = {
package = lib.mkDefault (pkgs.systemd.override { withHomed = false; });
sleep.extraConfig = ''
HibernateDelaySec=2h
'';
oomd = {
enable = true;
enableSystemSlice = true;
enableRootSlice = true;
2024-01-04 00:13:32 +01:00
enableUserSlices = true;
2023-12-12 17:43:16 +01:00
};
2024-03-04 20:06:38 +01:00
watchdog = {
runtimeTime = "30s";
rebootTime = "10m";
};
2023-12-12 17:43:16 +01:00
};
}