summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-06-06 14:17:03 +0000
committerChristine Dodrill <me@christine.website>2021-06-06 14:17:03 +0000
commit2b220cc57b198ae353afaf2b1859533c60e50bc0 (patch)
tree987f173ed8160269b292a2865fb3731e8a0e5051
parent690496c4e545e68482b5c162a03f0a4f97d35373 (diff)
downloadnixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar.gz
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar.bz2
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar.lz
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar.xz
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.tar.zst
nixpkgs-2b220cc57b198ae353afaf2b1859533c60e50bc0.zip
nixos/tailscale: add procps to $PATH
Currently tailscaled expects `sysctl` (from package procps) to be present
in the path when running on Linux. It can function without the `sysctl`
command present but it prints an error about it. This fixes that error.

    Warning: couldn't check net.ipv4.ip_forward (exec: "sysctl":
        executable file not found in $PATH).

Signed-off-by: Christine Dodrill <me@christine.website>
-rw-r--r--nixos/modules/services/networking/tailscale.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/tailscale.nix b/nixos/modules/services/networking/tailscale.nix
index 9a28a266a92..d1b23b72a25 100644
--- a/nixos/modules/services/networking/tailscale.nix
+++ b/nixos/modules/services/networking/tailscale.nix
@@ -28,7 +28,7 @@ in {
     systemd.packages = [ cfg.package ];
     systemd.services.tailscaled = {
       wantedBy = [ "multi-user.target" ];
-      path = [ pkgs.openresolv ];
+      path = [ pkgs.openresolv pkgs.procps ];
       serviceConfig.Environment = "PORT=${toString cfg.port}";
     };
   };