pub-solar-os/modules/sway/sway.service.nix

18 lines
543 B
Nix
Raw Normal View History

2022-11-20 22:28:23 +00:00
{pkgs, ...}: {
2021-05-30 19:10:28 +00:00
Unit = {
Description = "sway - SirCmpwn's Wayland window manager";
2022-11-20 22:28:23 +00:00
Documentation = ["man:sway(5)"];
BindsTo = ["graphical-session.target"];
Wants = ["graphical-session-pre.target"];
After = ["graphical-session-pre.target"];
2021-05-30 19:10:28 +00:00
};
Service = {
Type = "simple";
ExecStart = "${pkgs.sway}/bin/sway";
Restart = "on-failure";
RestartSec = "1";
TimeoutStopSec = "10";
ExecStopPost = "${pkgs.systemd}/bin/systemctl --user unset-environment SWAYSOCK DISPLAY I3SOCK WAYLAND_DISPLAY";
};
}