nix-conf/user/autostart.nix

34 lines
866 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"
"picom.service"
"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"];
picom.Service.ExecStart = ["${pkgs.picom}/bin/picom"];
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
};
}