From d7172084af13114d027c49d9fb30b51fe256894d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Thu, 8 Jan 2026 10:41:31 +0100 Subject: [PATCH] Fix traefik indentation problem --- deploy.sh | 10 +++++----- templates/nix-config/podman/traefik.nix | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index 23ea9b8..7a749b0 100644 --- a/deploy.sh +++ b/deploy.sh @@ -388,10 +388,10 @@ services_generation() { cp templates/nix-config/podman/${service}.nix final-nix-config/etc/nixos/podman/${service}.nix PODMAN_NETWORKS+=" \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}.0/24 --ip-range=172.16.${j}.0/24 --gateway=172.16.${j}.254 ${service}_backend"$'\n' PODMAN_NETWORKS+=" \${pkgs.podman}/bin/podman network create --driver=bridge --subnet=172.16.${j}0.0/24 --ip-range=172.16.${j}0.0/24 --gateway=172.16.${j}0.254 ${service}_frontend"$'\n' - TRAEFIK_NETWORKS+=" ${service}_frontend:"$'\n' - TRAEFIK_NETWORKS+=" ipv4_address: 172.16.${j}0.253"$'\n' - TRAEFIK_REF_NETWORKS+=" ${service}_frontend:"$'\n' - TRAEFIK_REF_NETWORKS+=" external: true"$'\n' + TRAEFIK_NETWORKS+=" ${service}_frontend:"$'\n' + TRAEFIK_NETWORKS+=" ipv4_address: 172.16.${j}0.253"$'\n' + TRAEFIK_REF_NETWORKS+=" ${service}_frontend:"$'\n' + TRAEFIK_REF_NETWORKS+=" external: true"$'\n' fi if [[ "${service}" == "frigate" ]]; then local FRIGATE_DEVICES_BLOCK="" @@ -599,7 +599,7 @@ nix_generation() { sed -i "s|SENDER_MAIL_ADDRESS|${SENDER_EMAIL_ADDRESS}|g" final-nix-config/etc/nixos/misc/mail.nix sed -i "s|PODMAN_NETWORKS|${PODMAN_NETWORKS//$'\n'/\\n}|" final-nix-config/etc/nixos/misc/activation.nix sed -i "s|TRAEFIK_NETWORKS|${TRAEFIK_NETWORKS//$'\n'/\\n}|" final-nix-config/etc/nixos/podman/traefik.nix - sed -i "s|TRAEFIK_NETWORKS_REF|${TRAEFIK_REF_NETWORKS//$'\n'/\\n}|" final-nix-config/etc/nixos/podman/traefik.nix + sed -i "s|TRAEFIK_REF_NETWORKS|${TRAEFIK_REF_NETWORKS//$'\n'/\\n}|" final-nix-config/etc/nixos/podman/traefik.nix if [[ "${TARGET_TPM}" == "true" ]]; then sed -i "s|# boot.initrd.systemd.tpm2.enable = true;| boot.initrd.systemd.tpm2.enable = true;|" final-nix-config/etc/nixos/configuration.nix fi diff --git a/templates/nix-config/podman/traefik.nix b/templates/nix-config/podman/traefik.nix index d89826e..44c6c31 100644 --- a/templates/nix-config/podman/traefik.nix +++ b/templates/nix-config/podman/traefik.nix @@ -18,7 +18,7 @@ in image: docker.io/library/traefik:latest container_name: traefik networks: - TRAEFIK_NETWORKS +TRAEFIK_NETWORKS ports: - 8080:80 - 8443:443 @@ -39,7 +39,7 @@ in - traefik.http.routers.traefik-https.tls.certresolver=cloudflare restart: always networks: - TRAEFIK_REF_NETWORKS +TRAEFIK_REF_NETWORKS ''; systemd.services.traefik = {