mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
22 lines
395 B
Nix
22 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";
|
|
};
|
|
};
|
|
|
|
}
|