From 03cff3b3e04b8e239ced0a6679ea1711bce67da9 Mon Sep 17 00:00:00 2001 From: blake Date: Sat, 11 Oct 2025 17:42:29 -0500 Subject: [PATCH] 309 current 2025-10-11 17:35:20 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/homelab/default.nix | 5 +++++ modules/homelab/services/gitea/default.nix | 4 ++-- modules/homelab/services/immich/default.nix | 4 ++-- modules/homelab/services/jellyfin/default.nix | 4 ++-- .../homelab/services/smarthome/homeassistant/default.nix | 6 +++--- modules/homelab/services/vaultwarden/default.nix | 4 ++-- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 31e60de..18e3ff3 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 308 current 2025-10-11 17:30:56 25.05.20251006.20c4598 6.12.50 * +# generation: 309 current 2025-10-11 17:35:20 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/default.nix b/modules/homelab/default.nix index 46a39d0..68b5cb4 100644 --- a/modules/homelab/default.nix +++ b/modules/homelab/default.nix @@ -27,6 +27,11 @@ in type = lib.types.str; description = "base domain used for reverse proxy"; }; + public_domain = lib.mkOption { + default = "snowbelle.lan"; + type = lib.types.str; + description = "base domain used for reverse proxy"; + }; host_ip = lib.mkOption { default = "10.10.0.10"; type = lib.types.str; diff --git a/modules/homelab/services/gitea/default.nix b/modules/homelab/services/gitea/default.nix index 1d9796c..a011a50 100644 --- a/modules/homelab/services/gitea/default.nix +++ b/modules/homelab/services/gitea/default.nix @@ -118,8 +118,8 @@ in # add to glance modules.services.glance.links.services = [{ title = service; - url = "https://git.${homelab.base_domain}"; - error-url = "http://${cfg.url}:${toString cfg.port}"; + url = "https://git.${homelab.public_domain}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}"; icon = "di:${service}"; }]; diff --git a/modules/homelab/services/immich/default.nix b/modules/homelab/services/immich/default.nix index 86300cb..13182cc 100644 --- a/modules/homelab/services/immich/default.nix +++ b/modules/homelab/services/immich/default.nix @@ -99,8 +99,8 @@ in # add to glance modules.services.glance.links.services = [{ title = service; - url = "https://photos.${homelab.base_domain}"; - error-url = "http://${cfg.url}:${toString cfg.port}"; + url = "https://photos.${homelab.public_domain}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}"; icon = "di:${service}"; }]; diff --git a/modules/homelab/services/jellyfin/default.nix b/modules/homelab/services/jellyfin/default.nix index badbf17..ce35d49 100644 --- a/modules/homelab/services/jellyfin/default.nix +++ b/modules/homelab/services/jellyfin/default.nix @@ -93,8 +93,8 @@ in # add to glance modules.services.glance.links.mediastack = [{ title = service; - url = "https://media.${homelab.base_domain}"; - error-url = "http://${cfg.url}:${toString cfg.port}"; + url = "https://media.${homelab.public_domain}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}"; icon = "di:${service}"; }]; diff --git a/modules/homelab/services/smarthome/homeassistant/default.nix b/modules/homelab/services/smarthome/homeassistant/default.nix index bd3aa29..a6a6d12 100644 --- a/modules/homelab/services/smarthome/homeassistant/default.nix +++ b/modules/homelab/services/smarthome/homeassistant/default.nix @@ -121,9 +121,9 @@ in # add to glance modules.services.glance.links.services = [{ - title = service; - url = "https://hass.${homelab.base_domain}"; - error-url = "http://${cfg.url}:${toString cfg.port}"; + title = "home assistant"; + url = "https://hass.${homelab.public_domain}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}"; icon = "di:${nixservice}"; }]; diff --git a/modules/homelab/services/vaultwarden/default.nix b/modules/homelab/services/vaultwarden/default.nix index 9581f4a..f3586e3 100644 --- a/modules/homelab/services/vaultwarden/default.nix +++ b/modules/homelab/services/vaultwarden/default.nix @@ -113,8 +113,8 @@ in # add to glance modules.services.glance.links.services = [{ title = service; - url = "https://${homelab.base_domain}"; - error-url = "http://${cfg.url}:${toString cfg.port}"; + url = "https://pass.${homelab.public_domain}"; + error-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}"; icon = "di:${service}"; }];