2023-09-07 12:47:33 +10:00
|
|
|
{
|
2024-08-11 12:05:42 +10:00
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
nix.gc.automatic = false;
|
2023-09-07 12:47:33 +10:00
|
|
|
|
2024-08-11 12:05:42 +10:00
|
|
|
systemd.services.free-space = {
|
|
|
|
serviceConfig.Type = "oneshot";
|
|
|
|
startAt = "hourly";
|
|
|
|
path = [
|
|
|
|
config.nix.package
|
|
|
|
pkgs.coreutils
|
|
|
|
];
|
2024-09-28 10:58:49 +10:00
|
|
|
script = builtins.readFile "${inputs.self}/modules/shared/free-space.bash";
|
2024-08-11 12:05:42 +10:00
|
|
|
};
|
2023-09-06 09:24:25 +10:00
|
|
|
|
|
|
|
# Bump the open files limit so that non-root users can run NixOS VM tests
|
|
|
|
security.pam.loginLimits = [
|
2024-07-24 19:05:26 +10:00
|
|
|
{
|
|
|
|
domain = "*";
|
|
|
|
item = "nofile";
|
|
|
|
type = "-";
|
|
|
|
value = "20480";
|
|
|
|
}
|
2023-09-06 09:24:25 +10:00
|
|
|
];
|
2023-09-07 12:47:33 +10:00
|
|
|
}
|