Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng a1f6aad037
Remove monthly garbage collection of git repos 2022-05-10 23:37:21 +02:00
coolneng a2c0337bae
Fix panacea-push service 2022-05-10 23:36:52 +02:00
1 changed files with 2 additions and 15 deletions

View File

@ -98,19 +98,6 @@ in {
after = [ "network.target" ];
};
# Garbage collect git repositories on a monthly basis
systemd.user.services.git-gc = {
description = "Garbage collect git repositories";
path = [ git fd ];
script = ''
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Documents/* --exec git -C '{}' gc
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Projects --exec git -C '{}' gc
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Repos --exec git -C '{}' gc
'';
serviceConfig.Type = "oneshot";
startAt = "*-*-13 17:00:00";
};
# HACK Change home partition permissions for mopidy
systemd.services.chmod-home = {
description = "Change home partition permissions for Mopidy";
@ -124,8 +111,8 @@ in {
# Push panacea changes to git daily
systemd.user.services.panacea-push = {
description = "Push panacea changes to git";
path = [ git gitAndTools.pass-git-helper ];
script = "${pkgs.git}/bin/git push";
path = [ pass-wayland git gitAndTools.pass-git-helper ];
script = "${pkgs.git}/bin/git -C /home/coolneng/Projects/panacea push";
serviceConfig.Type = "oneshot";
startAt = "14:00:00";
};