1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-17 08:39:44 +01:00
home-manager/tests/modules/services/nix-gc-darwin/basic.nix

20 lines
352 B
Nix
Raw Normal View History

{ ... }:
{
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}
'';
}