tailscale: add service + Trayscale, enable on host

Tailscale with --operator=zephrynis so the daemon is drivable without
sudo (Trayscale + tailscale switch/login from a plain shell), plus the
Trayscale systray app. Imported into the nixos-pc host.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-28 00:51:47 +01:00
parent 3d8fec08e5
commit 4b3983d895
2 changed files with 16 additions and 0 deletions

15
modules/tailscale.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs, ... }:
{
services.tailscale = {
enable = true;
# Let zephrynis drive the daemon without sudo — required for Trayscale,
# and makes `tailscale switch` / `login` work from a plain shell too
extraSetFlags = [ "--operator=zephrynis" ];
};
# Tray app for the bar's systray: status toggle + account switcher
# (work/personal via Tailscale fast user switching). Autostarted from
# hypr/custom/execs.lua (appended in home/zephrynis.nix).
environment.systemPackages = [ pkgs.trayscale ];
}