diff --git a/hosts/hosting-01/default.nix b/hosts/hosting-01/default.nix index cb10578..f532073 100644 --- a/hosts/hosting-01/default.nix +++ b/hosts/hosting-01/default.nix @@ -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; }; };