diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-06-17 04:23:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-16 22:23:14 -0400 |
commit | ca4f0becf996b69b22598649b0bc9b52ef9f7b5d (patch) | |
tree | 5f0b66555ec4afbab5dd988fb0585d316ae395e7 /nixos/modules/services | |
parent | 311a2516f09102b069951a94a15d61f7a1772427 (diff) |
nixos/oauth2-proxy: restart service when keyFile option changes (#320325)
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/security/oauth2-proxy.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/security/oauth2-proxy.nix b/nixos/modules/services/security/oauth2-proxy.nix index 3079a1d030c52..a897f04ea6333 100644 --- a/nixos/modules/services/security/oauth2-proxy.nix +++ b/nixos/modules/services/security/oauth2-proxy.nix @@ -586,11 +586,11 @@ in wantedBy = [ "multi-user.target" ]; wants = [ "network-online.target" ] ++ lib.optionals needsKeycloak [ "keycloak.service" ]; after = [ "network-online.target" ] ++ lib.optionals needsKeycloak [ "keycloak.service" ]; - + restartTriggers = [ cfg.keyFile ]; serviceConfig = { User = "oauth2-proxy"; Restart = "always"; - ExecStart = "${cfg.package}/bin/oauth2-proxy ${configString}"; + ExecStart = "${lib.getExe cfg.package} ${configString}"; EnvironmentFile = lib.mkIf (cfg.keyFile != null) cfg.keyFile; }; }; |