feat: enable integrated mode
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
parent
69b736d829
commit
00387b7cbf
1 changed files with 13 additions and 1 deletions
|
|
@ -2,8 +2,13 @@
|
|||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
settingsFormat = pkgs.formats.yaml { };
|
||||
headscaleConfig = settingsFormat.generate "headscale-settings.yaml" config.services.headscale.settings;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./disk-config.nix
|
||||
|
|
@ -59,6 +64,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
environment.etc."headscale/config.yaml".source = lib.mkForce (
|
||||
settingsFormat.generate "headscale-config.yaml" config.services.headscale.settings
|
||||
);
|
||||
|
||||
services.headplane = {
|
||||
enable = true;
|
||||
agent.enable = false;
|
||||
|
|
@ -73,8 +82,11 @@
|
|||
|
||||
headscale = {
|
||||
url = "https://headscale.escapeangle.com";
|
||||
config_strict = false;
|
||||
config_path = "${headscaleConfig}";
|
||||
config_strict = true;
|
||||
};
|
||||
|
||||
integration.proc.enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue