From 7f328e837f87f7d8a07fa1b39d867c1e8343cade Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Thu, 27 Mar 2025 23:22:51 +0100 Subject: [PATCH] homeassistant: add domain forwarding --- systems/x86_64-linux/loptland/default.nix | 26 ++++++++++++++++------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/systems/x86_64-linux/loptland/default.nix b/systems/x86_64-linux/loptland/default.nix index fe83883..74e4e80 100644 --- a/systems/x86_64-linux/loptland/default.nix +++ b/systems/x86_64-linux/loptland/default.nix @@ -62,16 +62,26 @@ in }; }; - "${domainName}" = { + "ha.${domainName}" = { forceSSL = cfg.enableAcme; useACMEHost = mkIf cfg.enableAcme domainName; locations."/" = { - root = /var/www/website; - index = "index.html"; + # tailscale ip + proxyPass = "http://100.86.23.74:8123"; }; }; + # "${domainName}" = { + # forceSSL = cfg.enableAcme; + # useACMEHost = mkIf cfg.enableAcme domainName; + + # locations."/" = { + # root = /var/www/website; + # index = "index.html"; + # }; + # }; + "_" = { forceSSL = cfg.enableAcme; useACMEHost = mkIf cfg.enableAcme domainName; @@ -208,11 +218,11 @@ in ]; }; - snowfallorg.users.${config.${namespace}.user.name}.home.config = { - programs.fish.shellInit = '' - eval $(op signin) - ''; - }; + # snowfallorg.users.${config.${namespace}.user.name}.home.config = { + # programs.fish.shellInit = '' + # eval $(op signin) + # ''; + # }; system.stateVersion = "24.11"; }