mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
timers and services are working
This commit is contained in:
parent
97254a14c4
commit
629387a38b
1 changed files with 31 additions and 24 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue