Compare commits
No commits in common. "a1f6aad037b24c49eebcbdffb4412c751f3e07a8" and "6af773d35a22307ec47337e482d7952ef093fb8a" have entirely different histories.
a1f6aad037
...
6af773d35a
|
@ -98,6 +98,19 @@ 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";
|
||||
|
@ -111,8 +124,8 @@ in {
|
|||
# Push panacea changes to git daily
|
||||
systemd.user.services.panacea-push = {
|
||||
description = "Push panacea changes to git";
|
||||
path = [ pass-wayland git gitAndTools.pass-git-helper ];
|
||||
script = "${pkgs.git}/bin/git -C /home/coolneng/Projects/panacea push";
|
||||
path = [ git gitAndTools.pass-git-helper ];
|
||||
script = "${pkgs.git}/bin/git push";
|
||||
serviceConfig.Type = "oneshot";
|
||||
startAt = "14:00:00";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue