mirror of
https://github.com/tale/headplane.git
synced 2026-08-13 15:07:24 +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;
|
||||
|
||||
Reference in New Issue
Block a user