fix(access): gensokyo

This commit is contained in:
arcnmx 2024-01-24 08:09:05 -08:00
parent fdfd6260c1
commit 228e2cf788
6 changed files with 17 additions and 6 deletions

View file

@ -24,6 +24,10 @@ in {
type = str;
default = "z2m.local.${config.networking.domain}";
};
tailDomain = mkOption {
type = str;
default = "z2m.tail.${config.networking.domain}";
};
port = mkOption {
type = port;
};
@ -42,10 +46,7 @@ in {
locations."/" = location;
};
${access.localDomain} = {
local.enable = true;
locations."/" = location;
};
"z2m.tail.${config.networking.domain}" = mkIf config.services.tailscale.enable {
serverAliases = mkIf config.services.tailscale.enable [ access.tailDomain ];
local.enable = true;
locations."/" = location;
};