nix-configs/home-modules/syncthing.nix

19 lines
418 B
Nix
Raw Normal View History

2024-09-21 20:07:40 -04:00
{ 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" ];
};
};
};
}