From 29386d8f0dbcceda35463261c219d349c0c9959b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 18 Jul 2025 17:10:24 +0000 Subject: [PATCH] Create environment file correctly, reference correct services --- modules/system/authentik.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/authentik.nix b/modules/system/authentik.nix index 6444815..a580a03 100644 --- a/modules/system/authentik.nix +++ b/modules/system/authentik.nix @@ -4,12 +4,12 @@ with lib; options.myModules.authentik.enable = mkEnableOption "custom authentik configuration"; config = mkIf config.myModules.authentik.enable { - sops.secrets.authentik-env = { - format = "env"; + sops.secrets.authentik-env = with config.virtualisation.oci-containers; { + format = "dotenv"; group = "authentik"; mode = "0440"; owner = "authentik"; - restartUnits = ["authentik"]; + restartUnits = ["${backend}-authentik-server" "${backend}-authentik-worker"]; sopsFile = ../../secrets/authentik.env; }; systemd.services.podman-create-authentik-pod = with config.virtualisation.oci-containers; {