1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-12 20:11:06 +01:00
home-manager/tests/modules/programs/nh/darwin/config.nix
2025-06-30 21:12:20 -05:00

22 lines
495 B
Nix

{
programs.nh = {
enable = true;
flake = "/path/to/flake";
clean = {
enable = true;
dates = "weekly";
};
};
nmt.script = ''
serviceFile="LaunchAgents/org.nix-community.home.nh-clean.plist"
serviceFileNormalized="$(normalizeStorePaths "$serviceFile")"
assertFileExists $serviceFile
assertFileContent $serviceFileNormalized ${./launchd.plist}
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh 'NH_FLAKE="/path/to/flake"'
'';
}