From 15e2edb4d6ea4592245c5b71a98b4987cbb23ca5 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 3 Jul 2023 00:26:57 -0700 Subject: [PATCH] add external_url to home-assistant --- modules/home-assistant.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/home-assistant.nix b/modules/home-assistant.nix index b478681..5cede7a 100644 --- a/modules/home-assistant.nix +++ b/modules/home-assistant.nix @@ -13,6 +13,12 @@ in example = "ha"; }; + domain = lib.mkOption { + type = lib.types.str; + description = "domain under which home-assistant will be served."; + example = "mydomain.com"; + }; + sopsFile = lib.mkOption { type = lib.types.path; description = "Sops file location"; @@ -65,6 +71,7 @@ in }; logger.default = "info"; homeassistant = { + external_url = "https://${cfg.subdomain}.${cfg.domain}"; country = "!secret country"; latitude = "!secret latitude_home"; longitude = "!secret longitude_home";