1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 09:01:04 +01:00

cliphist: use configured systemdTargets throughout service (#6751)

Was running into issues with it not starting properly. This fixed my
issue.
This commit is contained in:
Austin Horstman 2025-04-03 17:03:55 -05:00 committed by GitHub
parent 107352dde4
commit 66a6ec65f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,8 @@ in {
systemd.user.services.cliphist = { systemd.user.services.cliphist = {
Unit = { Unit = {
Description = "Clipboard management daemon"; Description = "Clipboard management daemon";
PartOf = [ "graphical-session.target" ]; PartOf = lib.toList cfg.systemdTargets;
After = lib.toList cfg.systemdTargets;
}; };
Service = { Service = {
@ -77,7 +78,8 @@ in {
systemd.user.services.cliphist-images = lib.mkIf cfg.allowImages { systemd.user.services.cliphist-images = lib.mkIf cfg.allowImages {
Unit = { Unit = {
Description = "Clipboard management daemon - images"; Description = "Clipboard management daemon - images";
PartOf = [ "graphical-session.target" ]; PartOf = lib.toList cfg.systemdTargets;
After = lib.toList cfg.systemdTargets;
}; };
Service = { Service = {