Update hosts/docker/configuration.nix
Check NixOS configurations / eval-hosts (push) Failing after 12m7s

This commit is contained in:
2026-06-24 02:00:32 +00:00
parent 03adfdd0de
commit 70ea6c2e7c
+23 -23
View File
@@ -111,33 +111,33 @@ systemd.timers.nextcloud = {
# create update task
systemd.services.update-containers = {
description = "Update Docker Compose Containers";
after = [ "docker.service" ];
wantedBy = [ "multi-user.target" ];
# systemd.services.update-containers = {
## description = "Update Docker Compose Containers";
# after = [ "docker.service" ];
# wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
User = "nixos";
WorkingDirectory = "/home/nixos/docker";
ExecStart = "${pythonEnv}/bin/python3 /home/nixos/docker/update-containers.py";
StandardOutput = "journal";
StandardError = "journal";
};
# serviceConfig = {
# Type = "oneshot";
# User = "nixos";
# WorkingDirectory = "/home/nixos/docker";
# ExecStart = "${pythonEnv}/bin/python3 /home/nixos/docker/update-containers.py";
# StandardOutput = "journal";
# StandardError = "journal";
# };
path = [ pkgs.docker pkgs.docker-compose ]; # Ensures docker CLI is available in $PATH
};
# path = [ pkgs.docker pkgs.docker-compose ]; # Ensures docker CLI is available in $PATH
# };
systemd.timers.update-containers = {
description = "Weekly + Reboot container update";
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5min"; # Run 5 minutes after boot
OnUnitActiveSec = "1w"; # Run every week after last run
Persistent = true; # Catch up if system was off
};
};
#systemd.timers.update-containers = {
# description = "Weekly + Reboot container update";
# wantedBy = [ "timers.target" ];
# timerConfig = {
# OnBootSec = "5min"; # Run 5 minutes after boot
# OnUnitActiveSec = "1w"; # Run every week after last run
# Persistent = true; # Catch up if system was off
# };
#};
# Create Gotify Docker monitoring script task