diff --git a/modules/home/workstation/tools/default.nix b/modules/home/workstation/tools/default.nix index 91c44b2..5f911c0 100644 --- a/modules/home/workstation/tools/default.nix +++ b/modules/home/workstation/tools/default.nix @@ -1,6 +1,7 @@ { imports = [ ./ookpower.nix + ./tailscale-applet.nix ./live-buds-cli.nix ./virt-manager.nix ./1password.nix diff --git a/modules/home/workstation/tools/tailscale-applet.nix b/modules/home/workstation/tools/tailscale-applet.nix new file mode 100644 index 0000000..723365d --- /dev/null +++ b/modules/home/workstation/tools/tailscale-applet.nix @@ -0,0 +1,20 @@ +{ + lib, + pkgs, + ook, + ... +}: let + inherit (ook.lib.services) mkGraphicalService; + inherit (lib) getExe; +in { + systemd.user.services.tailscale-applet = mkGraphicalService { + Unit = { + Description = "Tray applet for tailscale"; + Requires = ["tray.target"]; + }; + Service = { + ExecStart = "${getExe pkgs.tailscale-systray}"; + Restart = "on-abort"; + }; + }; +}