From 47e0cb8e149387850c0888df765a1455924694b9 Mon Sep 17 00:00:00 2001 From: shokinn Date: Fri, 29 Dec 2023 15:01:03 +0100 Subject: [PATCH] link static workdir deps to /run/authentik --- module.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module.nix b/module.nix index 26722fc..a78cf40 100644 --- a/module.nix +++ b/module.nix @@ -154,6 +154,9 @@ in requiredBy = [ "authentik.service" ]; before = [ "authentik.service" ]; restartTriggers = [ config.environment.etc."authentik/config.yml".source ]; + preStart = '' + ln -svf ${config.services.authentik.authentikComponents.staticWorkdirDeps}/* /run/authentik/ + ''; serviceConfig = { RuntimeDirectory = "authentik"; WorkingDirectory = "%t/authentik";