treewide: remove duplicate port settings

This commit is contained in:
Felix Buehler 2025-02-25 23:53:44 +01:00
parent 375424cb9f
commit b6b9972d60
21 changed files with 58 additions and 143 deletions

View file

@ -7,25 +7,18 @@ in
{
options.my.services.tandoor-recipes = with lib; {
enable = mkEnableOption "Tandoor Recipes";
port = mkOption {
type = types.port;
default = 8089;
example = 8080;
description = "Internal port";
};
};
config = lib.mkIf cfg.enable {
services.tandoor-recipes = {
enable = true;
inherit (cfg) port;
};
# Proxy to Tandoor-Recipes
my.services.webserver.virtualHosts = [
{
subdomain = "recipes";
inherit (cfg) port;
inherit (config.services.tandoor-recipes) port;
}
];