System/home-manager/linux/services/syncthing.nix

19 lines
507 B
Nix
Raw Normal View History

2022-07-02 21:32:06 -04:00
{ config, lib, pkgs, inputs, ... }:
let
stray = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".syncthingtray;
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 = {
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
};
}