2022-01-18 11:14:54 +00:00
|
|
|
{
|
2022-06-12 15:39:15 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2022-01-18 11:14:54 +00:00
|
|
|
systemd.user.targets.sway-session = {
|
|
|
|
description = "Sway compositor session";
|
2022-06-12 15:39:15 +00:00
|
|
|
documentation = ["man:systemd.special(7)"];
|
|
|
|
bindsTo = ["graphical-session.target"];
|
|
|
|
wants = ["graphical-session-pre.target"];
|
|
|
|
after = ["graphical-session-pre.target"];
|
2022-01-18 11:14:54 +00:00
|
|
|
};
|
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
xwayland
|
2022-01-20 07:05:42 +00:00
|
|
|
wl-clipboard
|
2022-06-12 15:39:15 +00:00
|
|
|
(python38.withPackages (ps: with ps; [i3pystatus keyring]))
|
2022-01-18 11:14:54 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-01-18 12:31:40 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager.defaultSession = "sway";
|
|
|
|
displayManager.sddm.enable = true;
|
|
|
|
libinput.enable = true;
|
|
|
|
layout = "de";
|
|
|
|
xkbVariant = "neo";
|
|
|
|
};
|
2022-01-18 14:21:38 +00:00
|
|
|
}
|