l copyq: run as user service
This commit is contained in:
parent
44cdb9227e
commit
4e9870e45a
@ -19,9 +19,9 @@ let
|
|||||||
${pkgs.copyq}/bin/copyq config text_wrap true
|
${pkgs.copyq}/bin/copyq config text_wrap true
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
systemd.services.copyq = {
|
systemd.user.services.copyq = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
requires = [ "xserver.service" ];
|
requires = [ "xmonad.service" ];
|
||||||
environment = {
|
environment = {
|
||||||
DISPLAY = ":${toString config.services.xserver.display}";
|
DISPLAY = ":${toString config.services.xserver.display}";
|
||||||
};
|
};
|
||||||
@ -35,7 +35,6 @@ in {
|
|||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "15s";
|
RestartSec = "15s";
|
||||||
StartLimitBurst = 0;
|
StartLimitBurst = 0;
|
||||||
User = "lass";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user