34 lines
866 B
Nix
34 lines
866 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
lib.mkIf config.u.has.graphical {
|
|
systemd.user.targets.autostart = {
|
|
Unit = {
|
|
Wants = [
|
|
"plasma-polkit-agent.service"
|
|
"plasma-xdg-desktop-portal-kde.service"
|
|
"plasma-dolphin.service"
|
|
"xdg-desktop-portal.service"
|
|
"copyq.service"
|
|
"fcitx5.service"
|
|
"picom.service"
|
|
"safeeyes.service"
|
|
"snixembed.service"
|
|
];
|
|
Requires = [
|
|
"graphical-session.target"
|
|
];
|
|
};
|
|
};
|
|
systemd.user.services = {
|
|
copyq.Service.ExecStart = ["${pkgs.copyq}/bin/copyq"];
|
|
fcitx5.Service.ExecStart = ["/run/current-system/sw/bin/fcitx5"];
|
|
picom.Service.ExecStart = ["${pkgs.picom}/bin/picom"];
|
|
safeeyes.Service.ExecStart = ["${pkgs.safeeyes}/bin/safeeyes"];
|
|
snixembed.Service.ExecStart = ["${pkgs.snixembed}/bin/snixembed"];
|
|
};
|
|
}
|