timers and services are working

This commit is contained in:
Aaron Honeycutt 2025-02-05 13:30:53 +00:00
parent 97254a14c4
commit 629387a38b

View file

@ -119,32 +119,39 @@
## These are disabled currently as I am testing this. ## These are disabled currently as I am testing this.
# systemd.user.services.website-git-update = { systemd.user.services."website-git-update" = {
# enable = true; enable = false;
# description = "runs git to pull latest website changes"; description = "website-git-update runs git to pull latest website changes";
# serviceConfig = { serviceConfig = {
# ExecStart = "/run/current-system/sw/bin/git -C /mnt/DATA/Website/ahoneybun.net pull"; ExecStart = "/run/current-system/sw/bin/git -C /mnt/DATA/Website/ahoneybun.net pull";
# }; };
# wantedBy = [ "multi-user.target" ]; wantedBy = [ "default.target" ];
# }; };
# systemd.timers."website-git-update" = { systemd.user.timers."website-git-update" = {
# wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
# timerConfig = { timerConfig = {
# OnBootSec = "15m"; OnBootSec = "15m";
# OnUnitActiveSec = "15m"; OnUnitActiveSec = "15m";
# Unit = "website-git-update.service"; };
# }; };
# };
# systemd.services.zola-build = { systemd.user.services."website-zola-build" = {
# enable = true; enable = false;
# description = "rebuild zola website"; description = "rebuild zola website";
# serviceConfig = { serviceConfig = {
# ExecStart = "/run/current-system/sw/bin/zola -r /mnt/DATA/Website/ahoneybun.net build"; ExecStart = "/run/current-system/sw/bin/zola -r /mnt/DATA/Website/ahoneybun.net build";
# }; };
# wantedBy = [ "multi-user.target" ]; wantedBy = [ "default.target" ];
# }; };
systemd.user.timers."website-zola-build" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "30m";
OnUnitActiveSec = "30m";
};
};
# System # System
system.stateVersion = "24.11"; system.stateVersion = "24.11";