modules: move builder into common
This commit is contained in:
parent
272bb5ffc1
commit
c229a2a776
11 changed files with 34 additions and 35 deletions
modules/darwin/common
23
modules/darwin/common/builder.nix
Normal file
23
modules/darwin/common/builder.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
nix.gc.automatic = false;
|
||||
|
||||
launchd.daemons.free-space = {
|
||||
serviceConfig = {
|
||||
StartCalendarInterval = [ { Minute = 15; } ];
|
||||
};
|
||||
path = [
|
||||
config.nix.package
|
||||
pkgs.coreutils
|
||||
];
|
||||
script = builtins.readFile "${inputs.self}/modules/shared/free-space.bash";
|
||||
};
|
||||
|
||||
# https://github.com/LnL7/nix-darwin/blob/230a197063de9287128e2c68a7a4b0cd7d0b50a7/modules/nix/default.nix#L201
|
||||
nix.daemonProcessType = "Interactive";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue