diff --git a/system/services/whats-up-docker.nix b/system/services/whats-up-docker.nix index b663910b..4722fcf3 100644 --- a/system/services/whats-up-docker.nix +++ b/system/services/whats-up-docker.nix @@ -3,36 +3,40 @@ lib, pkgs, ... -}: { - virtualisation.oci-containers.containers.whats-up-docker = { - image = "getwud/wud:latest"; - autoStart = true; +}: let + wudVersion = "8.1.1"; +in { + virtualisation.oci-containers.containers = { + whats-up-docker = { + image = "getwud/wud:${wudVersion}"; + autoStart = true; - login = { - # Uses DockerHub by default - # registry = ""; + login = { + # Uses DockerHub by default + # registry = ""; - # DockerHub Credentials - username = "christoph.urlacher@protonmail.com"; - passwordFile = "${config.sops.secrets.docker-password.path}"; + # DockerHub Credentials + username = "christoph.urlacher@protonmail.com"; + passwordFile = "${config.sops.secrets.docker-password.path}"; + }; + + dependsOn = [ + # "pihole" + ]; + + ports = [ + # "3001:3000" + ]; + + volumes = [ + "/var/run/docker.sock:/var/run/docker.sock" + ]; + + environment = {}; + + extraOptions = [ + "--net=behind-nginx" + ]; }; - - dependsOn = [ - # "pihole" - ]; - - ports = [ - # "3001:3000" - ]; - - volumes = [ - "/var/run/docker.sock:/var/run/docker.sock" - ]; - - environment = {}; - - extraOptions = [ - "--net=behind-nginx" - ]; }; }