@ -4,7 +4,7 @@ with lib;
let cfg = config . services . tailscale ;
let cfg = config . services . tailscale ;
in {
in {
meta . maintainers = with maintainers ; [ danderson mbaillie ] ;
meta . maintainers = with maintainers ; [ danderson mbaillie twitchyliquid64 ] ;
options . services . tailscale = {
options . services . tailscale = {
enable = mkEnableOption " T a i l s c a l e c l i e n t d a e m o n " ;
enable = mkEnableOption " T a i l s c a l e c l i e n t d a e m o n " ;
@ -40,7 +40,11 @@ in {
systemd . packages = [ cfg . package ] ;
systemd . packages = [ cfg . package ] ;
systemd . services . tailscaled = {
systemd . services . tailscaled = {
wantedBy = [ " m u l t i - u s e r . t a r g e t " ] ;
wantedBy = [ " m u l t i - u s e r . t a r g e t " ] ;
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 = [
serviceConfig . Environment = [
" P O R T = ${ toString cfg . port } "
" P O R T = ${ toString cfg . port } "
'' " F L A G S = - - t u n ${ lib . escapeShellArg cfg . interfaceName } " ''
'' " F L A G S = - - t u n ${ lib . escapeShellArg cfg . interfaceName } " ''