home: add tailscale-systray service
This commit is contained in:
parent
bf43fc8e64
commit
664b22c2bb
2 changed files with 21 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./ookpower.nix
|
./ookpower.nix
|
||||||
|
./tailscale-applet.nix
|
||||||
./live-buds-cli.nix
|
./live-buds-cli.nix
|
||||||
./virt-manager.nix
|
./virt-manager.nix
|
||||||
./1password.nix
|
./1password.nix
|
||||||
|
|
|
||||||
20
modules/home/workstation/tools/tailscale-applet.nix
Normal file
20
modules/home/workstation/tools/tailscale-applet.nix
Normal file
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue