infra/modules/darwin/builder.nix

24 lines
481 B
Nix
Raw Normal View History

2023-09-07 12:47:33 +10:00
{
2024-08-11 12:05:42 +10:00
config,
inputs,
pkgs,
...
}:
{
nix.gc.automatic = false;
launchd.daemons.free-space = {
serviceConfig = {
StartCalendarInterval = [ { Minute = 15; } ];
};
path = [
config.nix.package
pkgs.coreutils
];
script = import "${inputs.self}/modules/shared/free-space.nix";
};
2023-09-07 12:47:33 +10:00
# https://github.com/LnL7/nix-darwin/blob/230a197063de9287128e2c68a7a4b0cd7d0b50a7/modules/nix/default.nix#L201
nix.daemonProcessType = "Interactive";
2023-09-07 12:47:33 +10:00
}