From 3191e450f2980eb8d9b0d346b4e071d975c8a0a3 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Tue, 21 Oct 2025 12:46:23 +1100 Subject: [PATCH] nixos/pangolin: update module to the new Traefik module interface Signed-off-by: Fernando Rodrigues --- nixos/modules/services/networking/pangolin.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/networking/pangolin.nix b/nixos/modules/services/networking/pangolin.nix index 302867adee3d..3a72ef9f33b6 100644 --- a/nixos/modules/services/networking/pangolin.nix +++ b/nixos/modules/services/networking/pangolin.nix @@ -201,13 +201,10 @@ in isSystemUser = true; }; }; - groups.fossorial = { - members = [ - "pangolin" - "gerbil" - "traefik" - ]; - }; + groups.fossorial.members = [ + "pangolin" + "gerbil" + ]; }; # order is as follows # "pangolin.service" @@ -431,9 +428,9 @@ in services.traefik = { enable = true; - group = "fossorial"; + supplementaryGroups = [ "fossorial" ]; dataDir = "${cfg.dataDir}/config/traefik"; - staticConfigOptions = { + static.settings = { providers.http = { endpoint = "http://localhost:${toString finalSettings.server.internal_port}/api/v1/traefik-config"; pollInterval = "5s"; @@ -471,7 +468,7 @@ in }; }; }; - dynamicConfigOptions = { + dynamic.files."pangolin".settings = { http = { middlewares.redirect-to-https.redirectScheme.scheme = "https"; routers = {