nixos/headscale: install package system wide

this is required to confirm nodes and generally manage everything
This commit is contained in:
Sandro Jäckel 2024-01-23 00:14:17 +01:00
parent 5e05ea57fb
commit 9f395dae71
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -444,10 +444,14 @@ in {
tls_letsencrypt_cache_dir = "${dataDir}/.cache";
};
# Setup the headscale configuration in a known path in /etc to
# allow both the Server and the Client use it to find the socket
# for communication.
environment.etc."headscale/config.yaml".source = configFile;
environment = {
# Setup the headscale configuration in a known path in /etc to
# allow both the Server and the Client use it to find the socket
# for communication.
etc."headscale/config.yaml".source = configFile;
systemPackages = [ cfg.package ];
};
users.groups.headscale = mkIf (cfg.group == "headscale") {};