fix(nginx): fix enable option for service
This commit is contained in:
parent
5792e478af
commit
2ca22205aa
5 changed files with 18 additions and 24 deletions
|
@ -14,9 +14,8 @@ in
|
|||
options.${namespace}.services.cinny = {
|
||||
enable = mkEnableOption "Cinny";
|
||||
nginx = {
|
||||
enable = mkEnableOption {
|
||||
description = "Enable nginx for this service.";
|
||||
type = types.bool;
|
||||
enable = mkEnableOption "Enable nginx for this service."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,10 +27,9 @@ in
|
|||
};
|
||||
|
||||
nginx = {
|
||||
enable = mkEnableOption {
|
||||
description = "Enable nginx for this service.";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
enable = mkEnableOption "Enable nginx for this service."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -14,10 +14,9 @@ in
|
|||
options.${namespace}.services.forgejo = {
|
||||
enable = mkEnableOption "Forgejo";
|
||||
nginx = {
|
||||
enable = mkEnableOption {
|
||||
description = "Enable nginx for this service.";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
enable = mkEnableOption "Enable nginx for this service."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -22,10 +22,9 @@ in
|
|||
enable = mkEnableOption "Linkwarden";
|
||||
package = lib.mkPackageOption pkgs.awesome-flake "linkwarden" { };
|
||||
nginx = {
|
||||
enable = mkEnableOption {
|
||||
description = "Enable nginx for this service.";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
enable = mkEnableOption "Enable nginx for this service."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -249,7 +248,7 @@ in
|
|||
virtualHosts."${cfg.domain}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "stahl.sh";
|
||||
locations."/".proxyPass = "http://:${cfg.host}" + builtins.toString cfg.port;
|
||||
locations."/".proxyPass = "http://${cfg.host}:${builtins.toString cfg.port}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -20,17 +20,15 @@ in
|
|||
};
|
||||
|
||||
nginx = {
|
||||
enable = mkEnableOption {
|
||||
description = "Enable nginx for this service.";
|
||||
type = types.bool;
|
||||
default = true;
|
||||
enable = mkEnableOption "Enable nginx for this service."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
redlib = {
|
||||
enable = mkEnableOption {
|
||||
description = "Whether or not to enable redlib.";
|
||||
type = type.bool;
|
||||
enable = mkEnableOption "Whether or not to enable redlib."
|
||||
// {
|
||||
default = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue