1
0
Fork 0

fix(nginx): fix enable option for service

This commit is contained in:
Philipp 2025-05-25 00:49:54 +02:00
parent 5792e478af
commit 2ca22205aa
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
5 changed files with 18 additions and 24 deletions

View file

@ -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;
}; };
}; };

View file

@ -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;
}; };
}; };

View file

@ -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;
}; };
}; };

View file

@ -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}";
}; };
}; };

View file

@ -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;
}; };