nix-configs/home-modules/syncthing.nix
2024-09-21 20:07:44 -04:00

18 lines
418 B
Nix

{ osConfig, lib, ... }:
{
services.syncthing = lib.mkIf (osConfig.nixpkgs.hostPlatform.system == "x86_64-linux") {
enable = true;
tray.enable = osConfig.services.displayManager.enable;
};
systemd.user = lib.mkIf osConfig.services.displayManager.enable {
targets.tray = {
Unit = {
Description = "System Tray";
Requires = [ "graphical-session.target" ];
};
};
};
}