Merge pull request #283617 from SuperSandro2000/headscale

nixos/headscale: install package system wide
This commit is contained in:
Robert Schütz 2024-01-25 13:40:29 -08:00 committed by GitHub
commit 8433938f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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") {};