nixos-config/shared/systemd.nix
2024-09-10 13:12:09 +02:00

24 lines
516 B
Nix

{ pkgs, lib, ... }:
{
systemd = {
# package = lib.mkDefault (nixpkgs-systemd-256.legacyPackages.x86_64-linux.systemd.override { withHomed = false; });
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";
};
};
}