infra/modules/nixos/builder.nix
2024-08-29 00:35:34 +00:00

29 lines
514 B
Nix

{
config,
inputs,
pkgs,
...
}:
{
nix.gc.automatic = false;
systemd.services.free-space = {
serviceConfig.Type = "oneshot";
startAt = "hourly";
path = [
config.nix.package
pkgs.coreutils
];
script = import "${inputs.self}/modules/shared/free-space.nix";
};
# Bump the open files limit so that non-root users can run NixOS VM tests
security.pam.loginLimits = [
{
domain = "*";
item = "nofile";
type = "-";
value = "20480";
}
];
}