feat(config): simplify required headscale config

This commit is contained in:
Aarnav Tale
2026-06-22 15:40:47 -04:00
parent dc32427cff
commit 10055541cc
10 changed files with 395 additions and 310 deletions
+1 -9
View File
@@ -85,15 +85,7 @@ The full (generated by `mise run nixos-docs`) list of `services.headplane.settin
{config, pkgs, ...}:
let
format = pkgs.formats.yaml {};
# A workaround generate a valid Headscale config accepted by Headplane when `config_strict == true`.
settings = lib.recursiveUpdate config.services.headscale.settings {
tls_cert_path = "/dev/null";
tls_key_path = "/dev/null";
policy.path = "/dev/null";
};
headscaleConfig = format.generate "headscale.yml" settings;
headscaleConfig = format.generate "headscale.yml" config.services.headscale.settings;
in {
services.headplane = {
enable = true;