ooknet/modules/home/workstation/tools/syncthing-applet.nix
2025-01-28 19:58:23 +11:00

15 lines
325 B
Nix

{
osConfig,
pkgs,
lib,
ook,
...
}: let
inherit (lib) mkIf;
inherit (ook.lib.services) mkTrayService;
inherit (osConfig.ooknet.host) syncthing;
in {
config = mkIf syncthing.enable {
systemd.user.services."syncthing-applet" = mkTrayService "${pkgs.syncthingtray-minimal}/bin/syncthingtray --wait";
};
}