chore(nix): refactor Headscale service configuration

- Reorganized `settings` block to simplify and correct nesting.
- Updated function arguments to include variadic parameters for extensibility.
This commit is contained in:
Harald Hoyer 2025-11-21 16:22:56 +01:00
parent 62201776f3
commit 129630c163

View file

@ -1,4 +1,4 @@
{ config }: { config, ... }:
let let
domain = "headscale.hoyer.xyz"; domain = "headscale.hoyer.xyz";
in in
@ -8,12 +8,11 @@ in
enable = true; enable = true;
address = "0.0.0.0"; address = "0.0.0.0";
port = 8080; port = 8080;
settings = {
server_url = "https://${domain}"; server_url = "https://${domain}";
dns = { dns = {
baseDomain = "hoyer.tail"; baseDomain = "hoyer.tail";
}; };
settings = {
logtail.enabled = false;
}; };
}; };