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 = {
|
options.${namespace}.services.cinny = {
|
||||||
enable = mkEnableOption "Cinny";
|
enable = mkEnableOption "Cinny";
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Enable nginx for this service."
|
||||||
description = "Enable nginx for this service.";
|
// {
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,10 +27,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Enable nginx for this service."
|
||||||
description = "Enable nginx for this service.";
|
// {
|
||||||
type = types.bool;
|
default = true;
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,9 @@ in
|
||||||
options.${namespace}.services.forgejo = {
|
options.${namespace}.services.forgejo = {
|
||||||
enable = mkEnableOption "Forgejo";
|
enable = mkEnableOption "Forgejo";
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Enable nginx for this service."
|
||||||
description = "Enable nginx for this service.";
|
// {
|
||||||
type = types.bool;
|
default = true;
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,9 @@ in
|
||||||
enable = mkEnableOption "Linkwarden";
|
enable = mkEnableOption "Linkwarden";
|
||||||
package = lib.mkPackageOption pkgs.awesome-flake "linkwarden" { };
|
package = lib.mkPackageOption pkgs.awesome-flake "linkwarden" { };
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Enable nginx for this service."
|
||||||
description = "Enable nginx for this service.";
|
// {
|
||||||
type = types.bool;
|
default = true;
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -249,7 +248,7 @@ in
|
||||||
virtualHosts."${cfg.domain}" = {
|
virtualHosts."${cfg.domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "stahl.sh";
|
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 = {
|
nginx = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Enable nginx for this service."
|
||||||
description = "Enable nginx for this service.";
|
// {
|
||||||
type = types.bool;
|
default = true;
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
redlib = {
|
redlib = {
|
||||||
enable = mkEnableOption {
|
enable = mkEnableOption "Whether or not to enable redlib."
|
||||||
description = "Whether or not to enable redlib.";
|
// {
|
||||||
type = type.bool;
|
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue