2022-08-14 15:10:30 +00:00
|
|
|
{pkgs, ...}: {
|
2021-05-30 19:10:28 +00:00
|
|
|
Unit = {
|
|
|
|
Description = "sway - SirCmpwn's Wayland window manager";
|
|
|
|
Documentation = ["man:sway(5)"];
|
|
|
|
BindsTo = ["graphical-session.target"];
|
|
|
|
Wants = ["graphical-session-pre.target"];
|
|
|
|
After = ["graphical-session-pre.target"];
|
|
|
|
};
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
2022-06-02 08:45:03 +00:00
|
|
|
ExecStartPre = "${pkgs.systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY DISPLAY";
|
2021-05-30 19:10:28 +00:00
|
|
|
ExecStart = "${pkgs.sway}/bin/sway";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = "1";
|
|
|
|
TimeoutStopSec = "10";
|
|
|
|
};
|
|
|
|
}
|