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.
# systemd.user.services.website-git-update = {
# enable = true;
# description = "runs git to pull latest website changes";
# serviceConfig = {
# ExecStart = "/run/current-system/sw/bin/git -C /mnt/DATA/Website/ahoneybun.net pull";
# };
# wantedBy = [ "multi-user.target" ];
# };
systemd.user.services."website-git-update" = {
enable = false;
description = "website-git-update runs git to pull latest website changes";
serviceConfig = {
ExecStart = "/run/current-system/sw/bin/git -C /mnt/DATA/Website/ahoneybun.net pull";
};
wantedBy = [ "default.target" ];
};
# systemd.timers."website-git-update" = {
# wantedBy = [ "timers.target" ];
# timerConfig = {
# OnBootSec = "15m";
# OnUnitActiveSec = "15m";
# Unit = "website-git-update.service";
# };
# };
systemd.user.timers."website-git-update" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "15m";
OnUnitActiveSec = "15m";
};
};
# systemd.services.zola-build = {
# enable = true;
# description = "rebuild zola website";
# serviceConfig = {
# ExecStart = "/run/current-system/sw/bin/zola -r /mnt/DATA/Website/ahoneybun.net build";
# };
# wantedBy = [ "multi-user.target" ];
# };
systemd.user.services."website-zola-build" = {
enable = false;
description = "rebuild zola website";
serviceConfig = {
ExecStart = "/run/current-system/sw/bin/zola -r /mnt/DATA/Website/ahoneybun.net build";
};
wantedBy = [ "default.target" ];
};
systemd.user.timers."website-zola-build" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "30m";
OnUnitActiveSec = "30m";
};
};
# System
system.stateVersion = "24.11";