Replace systemd user times with startAt
This commit is contained in:
parent
767abe161d
commit
fbc00c9fe7
|
@ -11,15 +11,7 @@
|
||||||
${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom sync"
|
${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom sync"
|
||||||
'';
|
'';
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
};
|
startAt = "22:00:00";
|
||||||
|
|
||||||
systemd.user.timers.doom-upgrade = {
|
|
||||||
description = "Daily upgrade of Doom Emacs";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "22:00:00";
|
|
||||||
Unit = "doom-upgrade.service";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Clean up Doom Emacs monthly
|
# Clean up Doom Emacs monthly
|
||||||
|
@ -31,15 +23,7 @@
|
||||||
${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom -y purge"
|
${pkgs.bash}/bin/bash -c "/home/coolneng/.emacs.d/bin/doom -y purge"
|
||||||
'';
|
'';
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
};
|
startAt = "13-*-* 22:00:00";
|
||||||
|
|
||||||
systemd.user.timers.doom-purge = {
|
|
||||||
description = "Monthly purge of Doom Emacs";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "13-*-* 22:00:00";
|
|
||||||
Unit = "doom-purge.service";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Upgrade Neovim plugins weekly
|
# Upgrade Neovim plugins weekly
|
||||||
|
@ -49,33 +33,17 @@
|
||||||
path = [ pkgs.git pkgs.neovim ];
|
path = [ pkgs.git pkgs.neovim ];
|
||||||
script = "${pkgs.neovim}/bin/nvim +PlugUpgrade +PlugUpdate +qa";
|
script = "${pkgs.neovim}/bin/nvim +PlugUpgrade +PlugUpdate +qa";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
startAt = "Wed 18:00:00";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.timers.vim-plug-upgrade = {
|
# Push password-store changes to git daily
|
||||||
description = "Weekly upgrade of Vim-Plug";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "Wed 18:00:00";
|
|
||||||
Unit = "vim-plug-upgrade.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Push password-store changes to git
|
|
||||||
systemd.user.services.password-store-push = {
|
systemd.user.services.password-store-push = {
|
||||||
description = "Push password-store changes to git";
|
description = "Push password-store changes to git";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = [ pkgs.pass-wayland pkgs.git pkgs.gitAndTools.pass-git-helper ];
|
path = [ pkgs.pass-wayland pkgs.git pkgs.gitAndTools.pass-git-helper ];
|
||||||
script = "${pkgs.pass-wayland}/bin/pass git push";
|
script = "${pkgs.pass-wayland}/bin/pass git push";
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
};
|
startAt = "18:00:00";
|
||||||
|
|
||||||
systemd.user.timers.password-store-push = {
|
|
||||||
description = "Daily password-store git push";
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnCalendar = "18:00:00";
|
|
||||||
Unit = "password-store-push.service";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue