nix-conf/user/autostart.nix

34 lines
890 B
Nix
Raw Normal View History

2024-12-20 21:25:22 -05:00
{
2024-12-22 23:46:42 -05:00
config,
lib,
2024-12-20 21:25:22 -05:00
pkgs,
...
2024-12-22 23:46:42 -05:00
}:
lib.mkIf config.u.has.graphical {
2024-11-29 01:48:44 -05:00
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"
2026-03-08 14:47:20 -04:00
"fastcompmgr.service"
2024-11-29 01:48:44 -05:00
"safeeyes.service"
2024-12-20 13:15:22 -05:00
"snixembed.service"
2024-11-29 01:48:44 -05:00
];
2025-02-25 17:36:22 -05:00
Requires = [
"graphical-session.target"
];
2024-11-29 01:48:44 -05:00
};
};
systemd.user.services = {
copyq.Service.ExecStart = ["${pkgs.copyq}/bin/copyq"];
fcitx5.Service.ExecStart = ["/run/current-system/sw/bin/fcitx5"];
2026-03-08 14:47:20 -04:00
fastcompmgr.Service.ExecStart = ["${pkgs.fastcompmgr}/bin/fastcompmgr"];
2025-01-19 11:24:18 -05:00
safeeyes.Service.ExecStart = ["${pkgs.safeeyes}/bin/safeeyes"];
2024-12-20 13:15:22 -05:00
snixembed.Service.ExecStart = ["${pkgs.snixembed}/bin/snixembed"];
2024-11-29 01:48:44 -05:00
};
}