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;
+1 -3
View File
@@ -73,9 +73,7 @@ _Example:_ `"/etc/headscale/config.yaml"`
## settings.headscale.config_strict
_Description:_ Headplane internally validates the Headscale configuration
to ensure that it changes the configuration in a safe way.
If you want to disable this validation, set this to false.
_Description:_ Deprecated. Headplane no longer validates the complete Headscale configuration and this option has no effect.
_Type:_ boolean