Added sway-session.target and stuff

This commit is contained in:
James Patrick 2022-03-07 23:35:07 -05:00
parent 4080b18d49
commit e4b8dec303
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ in with lib; {
systemd.user.services.mako = { systemd.user.services.mako = {
enable = true; enable = true;
description = "Mako foo"; description = "Mako foo";
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "sway-session.target" ];
partOf = [ "graphical-session.target" ]; partOf = [ "graphical-session.target" ];
serviceConfig = { serviceConfig = {
ExecStart = '' ExecStart = ''

View File

@ -61,9 +61,10 @@ in with lib; {
}; };
systemd.user.services.sway = { systemd.user.services.sway = {
enable = true;
description = "Sway - Wayland window manager"; description = "Sway - Wayland window manager";
documentation = [ "man:sway(5)" ]; documentation = [ "man:sway(5)" ];
bindsTo = [ "graphical-session.target" ]; bindsTo = [ "default.target" ];
wants = [ "graphical-session-pre.target" ]; wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ]; after = [ "graphical-session-pre.target" ];
# We explicitly unset PATH here, as we want it to be set by # We explicitly unset PATH here, as we want it to be set by