Skip to content

Instantly share code, notes, and snippets.

@cole-h

cole-h/sway.nix Secret

Created May 4, 2020
Embed
What would you like to do?
systemd.user = {
services = {
sway = {
Unit = {
Description = "sway";
Documentation = [ "man:sway(5)" ];
BindsTo = [ "graphical-session.target" ];
Wants = [ "graphical-session-pre.target" ];
After = [ "graphical-session-pre.target" ];
};
Service = {
Type = "simple";
Environment = [
"LD_LIBRARY_PATH=${pkgs.mesa_drivers}/lib"
"LIBGL_DRIVERS_PATH=${pkgs.mesa_drivers}/lib/dri"
"SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh"
];
ExecStart = "${config.wayland.windowManager.sway.package}/bin/sway";
ExecStop = "${config.wayland.windowManager.sway.package}/bin/swaymsg exit";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment