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;
server_url = "https://${domain}";
dns = {
baseDomain = "hoyer.tail";
};
settings = { settings = {
logtail.enabled = false; server_url = "https://${domain}";
dns = {
baseDomain = "hoyer.tail";
};
}; };
}; };