blob: 50b59347e8a44bf38840346cd55c2726ca253164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.desktop;
in {
config = mkIf cfg.enable {
services.kdeconnect = {
enable = true;
};
systemd.user.services.xfconnect-indicator = {
Install.WantedBy = ["default.target"];
Unit = {
After = ["graphical-session.target" "kdeconnect.service"];
Requires = ["dbus.service"];
WantedBy = ["graphical-session.target"];
};
Service = {
ExecStart = "${lib.getExe pkgs.local.xfconnect-indicator} -s";
TimeoutStartSec = "10s";
Restart = "on-failure";
RestartSec = "3s";
};
};
};
}
|