mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 10:33:25 +00:00
20 lines
352 B
Nix
20 lines
352 B
Nix
|
{ ... }:
|
||
|
|
||
|
{
|
||
|
nix.gc = {
|
||
|
automatic = true;
|
||
|
frequency = "monthly";
|
||
|
options = "--delete-older-than 30d";
|
||
|
};
|
||
|
|
||
|
test.stubs.nix = { name = "nix"; };
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=LaunchAgents/org.nix-community.home.nix-gc.plist
|
||
|
|
||
|
assertFileExists "$serviceFile"
|
||
|
|
||
|
assertFileContent "$serviceFile" ${./expected-agent.plist}
|
||
|
'';
|
||
|
}
|