mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
feat(config): simplify required headscale config
This commit is contained in:
+1
-9
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user