mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-05 12:20:50 +00:00
27 lines
788 B
Nix
27 lines
788 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
lib.mkMerge [
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
maintenance.enable = true;
|
|
};
|
|
}
|
|
|
|
(lib.mkIf pkgs.stdenv.hostPlatform.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}
|
|
'';
|
|
})
|
|
]
|