about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2024-01-25 13:40:29 -0800
committerGitHub <noreply@github.com>2024-01-25 13:40:29 -0800
commit8433938f9b934ba597b72e5021b185b202326662 (patch)
treef9a15090d150f1a436449291840d612a513f3fc6 /nixos
parentd3a15f043281e6813e5233bc8bca24c27179bd34 (diff)
parent9f395dae71b53f643cefe2503365fd385fc92f69 (diff)
downloadnixlib-8433938f9b934ba597b72e5021b185b202326662.tar
nixlib-8433938f9b934ba597b72e5021b185b202326662.tar.gz
nixlib-8433938f9b934ba597b72e5021b185b202326662.tar.bz2
nixlib-8433938f9b934ba597b72e5021b185b202326662.tar.lz
nixlib-8433938f9b934ba597b72e5021b185b202326662.tar.xz
nixlib-8433938f9b934ba597b72e5021b185b202326662.tar.zst
nixlib-8433938f9b934ba597b72e5021b185b202326662.zip
Merge pull request #283617 from SuperSandro2000/headscale
nixos/headscale: install package system wide
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") {};