l 2: don't use user serivces
This commit is contained in:
parent
55c05c18c7
commit
6af17a9ef6
@ -19,10 +19,9 @@ let
|
|||||||
${pkgs.copyq}/bin/copyq config text_wrap true
|
${pkgs.copyq}/bin/copyq config text_wrap true
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
systemd.user.services.copyq = {
|
systemd.services.copyq = {
|
||||||
after = [ "graphical.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
wants = [ "graphical.target" ];
|
requires = [ "display-manager.service" ];
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
environment = {
|
environment = {
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":0";
|
||||||
};
|
};
|
||||||
@ -33,6 +32,7 @@ in {
|
|||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = "2s";
|
RestartSec = "2s";
|
||||||
StartLimitBurst = 0;
|
StartLimitBurst = 0;
|
||||||
|
User = "lass";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,10 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
systemd.user.services.xresources = {
|
systemd.services.xresources = {
|
||||||
description = "xresources";
|
description = "xresources";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "display-manager.service" ];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":0";
|
||||||
@ -50,6 +51,7 @@ in {
|
|||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.xorg.xrdb}/bin/xrdb -merge ${xresources}";
|
ExecStart = "${pkgs.xorg.xrdb}/bin/xrdb -merge ${xresources}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
User = "lass";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user