Merge pull request #77557 from c0deaddict/feature/nginx-sso-package-option
nixos/nginx.sso: add package option
This commit is contained in:
commit
152a29fef8
|
@ -4,12 +4,21 @@ with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.nginx.sso;
|
cfg = config.services.nginx.sso;
|
||||||
pkg = getBin pkgs.nginx-sso;
|
pkg = getBin cfg.package;
|
||||||
configYml = pkgs.writeText "nginx-sso.yml" (builtins.toJSON cfg.configuration);
|
configYml = pkgs.writeText "nginx-sso.yml" (builtins.toJSON cfg.configuration);
|
||||||
in {
|
in {
|
||||||
options.services.nginx.sso = {
|
options.services.nginx.sso = {
|
||||||
enable = mkEnableOption "nginx-sso service";
|
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 {
|
configuration = mkOption {
|
||||||
type = types.attrsOf types.unspecified;
|
type = types.attrsOf types.unspecified;
|
||||||
default = {};
|
default = {};
|
||||||
|
|
Loading…
Reference in New Issue