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
 | 
			
		||||
  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 = {};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user