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,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
settingsFormat = pkgs.formats.yaml { };
|
||||||
|
headscaleConfig = settingsFormat.generate "headscale-settings.yaml" config.services.headscale.settings;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./disk-config.nix
|
./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 = {
|
services.headplane = {
|
||||||
enable = true;
|
enable = true;
|
||||||
agent.enable = false;
|
agent.enable = false;
|
||||||
|
|
@ -73,8 +82,11 @@
|
||||||
|
|
||||||
headscale = {
|
headscale = {
|
||||||
url = "https://headscale.escapeangle.com";
|
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