2024-05-13 14:22:08 +02:00
|
|
|
{ pkgs, lib, nixpkgs-systemd-256, ... }:
|
2023-12-12 17:43:16 +01:00
|
|
|
|
|
|
|
{
|
|
|
|
systemd = {
|
|
|
|
|
2024-05-13 14:22:08 +02:00
|
|
|
package = lib.mkDefault (nixpkgs-systemd-256.legacyPackages.x86_64-linux.systemd.override { withHomed = false; });
|
2023-12-12 17:43:16 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
}
|