{ config, pkgs, lib, ... }: with lib; let # Version tagging it-toolsVersion = "2024.10.22-7ca5933"; # Helper helper = import ./lib.nix { inherit config pkgs lib; }; cfg = config.numbus.services.it-tools; # Container config name = "it-tools"; in helper.mkPodmanService { inherit name; description = "IT-tools, useful tools when doing IT"; pod = "false"; defaultPort = "8880"; configDir = false; dataDir = false; middlewares = [ "secureHeaders" ]; # Compose file good composeText = '' services: it-tools: image: docker.io/corentinth/it-tools:${it-toolsVersion} container_name: it-tools hostname: it-tools networks: it-tools: ports: - "${cfg.port}:80/tcp" restart: unless-stopped networks: it-tools: name: it-tools driver: bridge ''; }