about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-23 00:14:17 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-24 23:00:54 +0100
commit9f395dae71b53f643cefe2503365fd385fc92f69 (patch)
tree6aca1ba5933074ef37c6d5975050e9e3bb90a9a5 /nixos
parent5e05ea57fbdacda46941b6c87558e99e0d933093 (diff)
downloadnixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar.gz
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar.bz2
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar.lz
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar.xz
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.tar.zst
nixlib-9f395dae71b53f643cefe2503365fd385fc92f69.zip
nixos/headscale: install package system wide
this is required to confirm nodes and generally manage everything
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/headscale.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/headscale.nix b/nixos/modules/services/networking/headscale.nix
index 95b5fcf6ebde..0159da37de87 100644
--- a/nixos/modules/services/networking/headscale.nix
+++ b/nixos/modules/services/networking/headscale.nix
@@ -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") {};