fix: use config from docs
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
00387b7cbf
commit
e98d47e7c1
1 changed files with 9 additions and 6 deletions
|
|
@ -6,8 +6,15 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
settingsFormat = pkgs.formats.yaml { };
|
||||
headscaleConfig = settingsFormat.generate "headscale-settings.yaml" config.services.headscale.settings;
|
||||
format = pkgs.formats.yaml { };
|
||||
settings = lib.recursiveUpdate config.services.headscale.settings {
|
||||
acme_email = "/dev/null";
|
||||
tls_cert_path = "/dev/null";
|
||||
tls_key_path = "/dev/null";
|
||||
policy.path = "/dev/null";
|
||||
oidc.client_secret_path = "/dev/null";
|
||||
};
|
||||
headscaleConfig = format.generate "headscale.yml" settings;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -64,10 +71,6 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
environment.etc."headscale/config.yaml".source = lib.mkForce (
|
||||
settingsFormat.generate "headscale-config.yaml" config.services.headscale.settings
|
||||
);
|
||||
|
||||
services.headplane = {
|
||||
enable = true;
|
||||
agent.enable = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue