mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
nixos/services.nginx.sso: remove with lib;
This commit is contained in:
parent
bc6eb177b4
commit
fe23e335d5
1 changed files with 5 additions and 8 deletions
|
@ -1,21 +1,18 @@
|
|||
{ config, lib, pkgs, utils, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.nginx.sso;
|
||||
format = pkgs.formats.yaml { };
|
||||
configPath = "/var/lib/nginx-sso/config.yaml";
|
||||
in {
|
||||
options.services.nginx.sso = {
|
||||
enable = mkEnableOption "nginx-sso service";
|
||||
enable = lib.mkEnableOption "nginx-sso service";
|
||||
|
||||
package = mkPackageOption pkgs "nginx-sso" { };
|
||||
package = lib.mkPackageOption pkgs "nginx-sso" { };
|
||||
|
||||
configuration = mkOption {
|
||||
configuration = lib.mkOption {
|
||||
type = format.type;
|
||||
default = {};
|
||||
example = literalExpression ''
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
listen = { addr = "127.0.0.1"; port = 8080; };
|
||||
|
||||
|
@ -48,7 +45,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.nginx-sso = {
|
||||
description = "Nginx SSO Backend";
|
||||
after = [ "network.target" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue