19 lines
418 B
Nix
19 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" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|