2022-07-02 21:32:06 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
let
|
|
|
|
stray = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".syncthingtray;
|
2022-10-13 22:13:43 -04:00
|
|
|
in {
|
2022-06-23 02:57:41 -04:00
|
|
|
config = lib.mkIf config.nathan.services.syncthing {
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
tray = {
|
|
|
|
enable = true;
|
2022-07-02 21:32:06 -04:00
|
|
|
package = stray;
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
};
|
2022-10-02 21:37:05 -04:00
|
|
|
# Add a delay to the service so it will start up after the bar
|
|
|
|
systemd.user.services.syncthingtray = {
|
2022-10-13 22:13:43 -04:00
|
|
|
Service = { ExecStartPre = "/run/current-system/sw/bin/sleep 5"; };
|
2022-10-02 21:37:05 -04:00
|
|
|
};
|
2022-06-23 02:57:41 -04:00
|
|
|
};
|
|
|
|
}
|