mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
26 lines
775 B
Nix
26 lines
775 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
lib.mkMerge [
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
maintenance.enable = true;
|
|
};
|
|
}
|
|
|
|
(lib.mkIf pkgs.stdenv.isDarwin {
|
|
nmt.script = ''
|
|
serviceFile=LaunchAgents/org.nix-community.home.git-maintenance-hourly.plist
|
|
assertFileExists "$serviceFile"
|
|
assertFileContent "$serviceFile" ${./expected-agent-hourly.plist}
|
|
|
|
serviceFile=LaunchAgents/org.nix-community.home.git-maintenance-daily.plist
|
|
assertFileExists "$serviceFile"
|
|
assertFileContent "$serviceFile" ${./expected-agent-daily.plist}
|
|
|
|
serviceFile=LaunchAgents/org.nix-community.home.git-maintenance-weekly.plist
|
|
assertFileExists "$serviceFile"
|
|
assertFileContent "$serviceFile" ${./expected-agent-weekly.plist}
|
|
'';
|
|
})
|
|
]
|