syncthing: init

This commit is contained in:
ooks-io 2025-01-28 19:58:23 +11:00
parent 84849d5b2d
commit 8e84af98ac
9 changed files with 91 additions and 6 deletions

View file

@ -9,6 +9,7 @@
./kdeconnect.nix
./ookbrightness.nix
./zellijMenu.nix
./syncthing-applet.nix
./nemo.nix
./qtscrcpy.nix
];

View file

@ -0,0 +1,15 @@
{
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";
};
}