nixos: services: nginx: sso: align with upstream

This aligns with the PR I opened on nixpkgs [1].

[1]: https://github.com/NixOS/nixpkgs/pull/325838
This commit is contained in:
Bruno BELANYI 2024-09-04 12:07:33 +02:00
parent 445cb43cb4
commit fb4047b2b3

View file

@ -59,15 +59,10 @@ in
StateDirectory = "nginx-sso";
WorkingDirectory = "/var/lib/nginx-sso";
# The files to be merged might not have the correct permissions
ExecStartPre = ''+${pkgs.writeShellScript "merge-nginx-sso-config" ''
ExecStartPre = pkgs.writeShellScript "merge-nginx-sso-config" ''
rm -f '${confPath}'
${utils.genJqSecretsReplacementSnippet cfg.configuration confPath}
# Fix permissions
chown nginx-sso:nginx-sso ${confPath}
chmod 0600 ${confPath}
''
}'';
'';
ExecStart = lib.mkForce ''
${lib.getExe pkg} \
--config ${confPath} \