base: OOM early on nixos rebuilds

This commit is contained in:
h7x4
2026-01-22 16:13:20 +09:00
parent 5f94345a91
commit 9f43ea887e

View File

@@ -37,4 +37,9 @@
"unstable=${inputs.nixpkgs-unstable}"
];
};
# Make builds to be more likely killed than important services.
# 100 is the default for user slices and 500 is systemd-coredumpd@
# We rather want a build to be killed than our precious user sessions as builds can be easily restarted.
systemd.services.nix-daemon.serviceConfig.OOMScoreAdjust = lib.mkDefault 250;
}