Make systemd arguments compatible with old home-manager
This commit is contained in:
parent
a3ecb00160
commit
448e8e11e3
|
@ -82,12 +82,13 @@ in
|
||||||
Before = [ "xwayland.target" "xdg-desktop-autostart.target" ];
|
Before = [ "xwayland.target" "xdg-desktop-autostart.target" ];
|
||||||
After = [ "niri.service" ];
|
After = [ "niri.service" ];
|
||||||
};
|
};
|
||||||
|
Install.WantedBy = [ "niri.service" ];
|
||||||
Install.UpheldBy = [ "niri.service" ];
|
Install.UpheldBy = [ "niri.service" ];
|
||||||
Service.Slice = "session.slice";
|
Service.Slice = "session.slice";
|
||||||
Service.Type = "notify";
|
Service.Type = "notify";
|
||||||
Service.ExecStart = "${lib.getExe pkgs.xwayland-satellite} ${xwayland-display}";
|
Service.ExecStart = "${lib.getExe pkgs.xwayland-satellite} ${xwayland-display}";
|
||||||
Service.ExecStartPost = [ "systemctl --user set-environment DISPLAY=${xwayland-display}" ];
|
Service.ExecStartPost = [ "systemctl --user set-environment DISPLAY=${xwayland-display}" ];
|
||||||
Service.ExecStopPre = [ "systemctl --user unset-environment" ];
|
Service.ExecStopPost = [ "systemctl --user unset-environment" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
|
|
Loading…
Reference in a new issue