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