Update hosts/docker/configuration.nix
Check NixOS configurations / eval-hosts (push) Failing after 12m7s
Check NixOS configurations / eval-hosts (push) Failing after 12m7s
This commit is contained in:
@@ -111,33 +111,33 @@ systemd.timers.nextcloud = {
|
|||||||
|
|
||||||
# create update task
|
# create update task
|
||||||
|
|
||||||
systemd.services.update-containers = {
|
# systemd.services.update-containers = {
|
||||||
description = "Update Docker Compose Containers";
|
## description = "Update Docker Compose Containers";
|
||||||
after = [ "docker.service" ];
|
# after = [ "docker.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
# wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
# serviceConfig = {
|
||||||
Type = "oneshot";
|
# Type = "oneshot";
|
||||||
User = "nixos";
|
# User = "nixos";
|
||||||
WorkingDirectory = "/home/nixos/docker";
|
# WorkingDirectory = "/home/nixos/docker";
|
||||||
ExecStart = "${pythonEnv}/bin/python3 /home/nixos/docker/update-containers.py";
|
# ExecStart = "${pythonEnv}/bin/python3 /home/nixos/docker/update-containers.py";
|
||||||
StandardOutput = "journal";
|
# StandardOutput = "journal";
|
||||||
StandardError = "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 = {
|
#systemd.timers.update-containers = {
|
||||||
description = "Weekly + Reboot container update";
|
# description = "Weekly + Reboot container update";
|
||||||
wantedBy = [ "timers.target" ];
|
# wantedBy = [ "timers.target" ];
|
||||||
timerConfig = {
|
# timerConfig = {
|
||||||
OnBootSec = "5min"; # Run 5 minutes after boot
|
# OnBootSec = "5min"; # Run 5 minutes after boot
|
||||||
OnUnitActiveSec = "1w"; # Run every week after last run
|
# OnUnitActiveSec = "1w"; # Run every week after last run
|
||||||
Persistent = true; # Catch up if system was off
|
# Persistent = true; # Catch up if system was off
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
# Create Gotify Docker monitoring script task
|
# Create Gotify Docker monitoring script task
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user