forked from mirrors/nixpkgs
nixos/tailscale: add glibc to PATH.
For some features, tailscaled uses getent(1) to get the shell of OS users. getent(1) is in the glibc derivation. Without this derivation in the path, tailscale falls back to /bin/sh for all users. Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
44730d3be8
commit
67b1fac192
|
@ -4,7 +4,7 @@ with lib;
|
|||
|
||||
let cfg = config.services.tailscale;
|
||||
in {
|
||||
meta.maintainers = with maintainers; [ danderson mbaillie ];
|
||||
meta.maintainers = with maintainers; [ danderson mbaillie twitchyliquid64 ];
|
||||
|
||||
options.services.tailscale = {
|
||||
enable = mkEnableOption "Tailscale client daemon";
|
||||
|
@ -40,7 +40,11 @@ in {
|
|||
systemd.packages = [ cfg.package ];
|
||||
systemd.services.tailscaled = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.openresolv pkgs.procps ];
|
||||
path = [
|
||||
pkgs.openresolv # for configuring DNS in some configs
|
||||
pkgs.procps # for collecting running services (opt-in feature)
|
||||
pkgs.glibc # for `getent` to look up user shells
|
||||
];
|
||||
serviceConfig.Environment = [
|
||||
"PORT=${toString cfg.port}"
|
||||
''"FLAGS=--tun ${lib.escapeShellArg cfg.interfaceName}"''
|
||||
|
|
Loading…
Reference in a new issue