From 94df02515deab3c1f796d3caecec7b18e4ab2448 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Mon, 13 Jul 2026 01:34:19 +1000 Subject: [PATCH] removed let statement --- hosts/docker/configuration.nix | 107 ++------------------------------- 1 file changed, 6 insertions(+), 101 deletions(-) diff --git a/hosts/docker/configuration.nix b/hosts/docker/configuration.nix index 0c5037a..c6ef0ce 100644 --- a/hosts/docker/configuration.nix +++ b/hosts/docker/configuration.nix @@ -4,12 +4,12 @@ { config, lib, pkgs, inputs, ... }: -let - pythonEnv = pkgs.python3.withPackages (ps: with ps; [ - docker - pytz - ]); -in +# let +# pythonEnv = pkgs.python3.withPackages (ps: with ps; [ +# docker +# pytz +# ]); +# in { imports = @@ -48,101 +48,6 @@ boot.supportedFilesystems = [ "nfs" ]; services.rpcbind.enable = true; -# # Create nextcloud cron scheduled task -# systemd.services.nextcloud = { -# description = "Nextcloud scheduled task"; -# script = ''${pkgs.bash}/bin/bash ~/docker/services-up.sh --profile nextcloud exec -u 33 nextcloud-webapp php ./cron.php''; -# serviceConfig = { -# Type = "oneshot"; -# User = "nixos"; -# }; -# path = with pkgs; [ docker docker-compose ]; -# }; - -# systemd.timers.nextcloud = { -# wantedBy = [ "timers.target" ]; -# timerConfig = { -# OnCalendar = "*:0/5"; -# Persistent = true; -# }; -# }; - -# Create nextcloud cron scheduled task -# systemd.services.docker-prune = { -# description = "Prune docker data"; -# script = ''${pkgs.docker} system prune --volumes --all''; -# serviceConfig = { -# Type = "oneshot"; -# User = "nixos"; -# }; -# path = with pkgs; [ docker docker-compose ]; -# }; - -# systemd.timers.docker-prune = { -# wantedBy = [ "timers.target" ]; -# timerConfig = { -# OnCalendar = "monthly"; -# Persistent = true; -# }; -# }; - -# create update task - -# 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"; -# }; - -# 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 -# }; -#}; - -# Create Gotify Docker monitoring script task - - # systemd.services.docker-health-to-gotify = { - # description = "Alert Gotify when Docker containers become unhealthy"; - # after = [ "docker.service" ]; - # serviceConfig = { - # Type = "oneshot"; - # # Run as root so it can read /etc/secrets and access docker socket - # # User = "root"; - # #EnvironmentFile = "-/etc/secrets/docker-health-alert.env"; - # ExecStart = "${pkgs.bash}/bin/bash /home/nixos/docker/monitoring/gotify/docker-health-to-gotify.sh"; - # StandardOutput = "journal"; - # StandardError = "journal"; - # }; - # path = with pkgs; [ docker curl coreutils gnused ]; - # }; - - # systemd.timers.docker-health-to-gotify = { - # wantedBy = [ "timers.target" ]; - # timerConfig = { - # OnBootSec = "2min"; - # OnUnitActiveSec = "1min"; - # AccuracySec = "15s"; - # Persistent = true; - # }; - # }; - systemd.tmpfiles.rules = [ # Create /mnt/docker #"d /mnt/docker 0755 root root -"