Skip to content

Commit

Permalink
Merge pull request #77557 from c0deaddict/feature/nginx-sso-package-o…
Browse files Browse the repository at this point in the history
…ption

nixos/nginx.sso: add package option
  • Loading branch information
bhipple authored Jul 6, 2020
2 parents f9aa6fa + 6f3b04e commit 152a29f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion nixos/modules/services/security/nginx-sso.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ with lib;

let
cfg = config.services.nginx.sso;
pkg = getBin pkgs.nginx-sso;
pkg = getBin cfg.package;
configYml = pkgs.writeText "nginx-sso.yml" (builtins.toJSON cfg.configuration);
in {
options.services.nginx.sso = {
enable = mkEnableOption "nginx-sso service";

package = mkOption {
type = types.package;
default = pkgs.nginx-sso;
defaultText = "pkgs.nginx-sso";
description = ''
The nginx-sso package that should be used.
'';
};

configuration = mkOption {
type = types.attrsOf types.unspecified;
default = {};
Expand Down

0 comments on commit 152a29f

Please sign in to comment.