added port forwards to services

This commit is contained in:
Leyla Becker 2025-01-03 13:23:06 -06:00
parent 6ab64fafe1
commit 12e1f8067b
3 changed files with 14 additions and 34 deletions

View file

@ -4,13 +4,7 @@
pkgs,
inputs,
...
}: let
jellyfinPort = 8096;
dnsPort = 53;
httpPort = 80;
httpsPort = 443;
isDebug = false;
in {
}: {
imports = [];
options = {
@ -30,18 +24,6 @@ in {
default = "${config.apps.headscale.subdomain}.${config.apps.base_domain}";
};
};
home-assistant = {
subdomain = lib.mkOption {
type = lib.types.str;
description = "subdomain of base domain that home-assistant will be hosted at";
default = "home-assistant";
};
hostname = lib.mkOption {
type = lib.types.str;
description = "hostname that home-assistant will be hosted at";
default = "${config.apps.home-assistant.subdomain}.${config.apps.base_domain}";
};
};
nextcloud = {
subdomain = lib.mkOption {
type = lib.types.str;
@ -135,20 +117,6 @@ in {
};
};
networking.firewall.allowedTCPPorts =
[
httpPort
httpsPort
dnsPort
]
++ (lib.optional isDebug [
jellyfinPort
config.services.headscale.port
config.services.forgejo.settings.server.HTTP_PORT
config.services.home-assistant.config.http.server_port
config.services.postgresql.settings.port
]);
environment.systemPackages = [
config.services.headscale.package
];