os/modules/graphical/sway/sway.service.nix
2023-11-10 19:48:06 +01:00

18 lines
527 B
Nix

{pkgs, ...}: {
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";
ExecStartPre = "${pkgs.systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY DISPLAY";
ExecStart = "${pkgs.sway}/bin/sway";
Restart = "on-failure";
RestartSec = "1";
TimeoutStopSec = "10";
};
}