mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 14:39:23 +03:00
nixos/nginx-sso: use 'lib.getExe'
This commit is contained in:
parent
873d6a92d6
commit
cf2b6c4eb2
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.nginx.sso;
|
cfg = config.services.nginx.sso;
|
||||||
pkg = getBin cfg.package;
|
|
||||||
format = pkgs.formats.yaml { };
|
format = pkgs.formats.yaml { };
|
||||||
configYml = format.generate "nginx-sso.yml" cfg.configuration;
|
configYml = format.generate "nginx-sso.yml" cfg.configuration;
|
||||||
in {
|
in {
|
||||||
|
@ -49,9 +48,9 @@ in {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkg}/bin/nginx-sso \
|
${lib.getExe cfg.package} \
|
||||||
--config ${configYml} \
|
--config ${configYml} \
|
||||||
--frontend-dir ${pkg}/share/frontend
|
--frontend-dir ${lib.getBin cfg.package}/share/frontend
|
||||||
'';
|
'';
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue