nixos-config/config/services/sway.nix

31 lines
700 B
Nix

{
config,
pkgs,
lib,
...
}: {
systemd.user.targets.sway-session = {
description = "Sway compositor session";
documentation = ["man:systemd.special(7)"];
bindsTo = ["graphical-session.target"];
wants = ["graphical-session-pre.target"];
after = ["graphical-session-pre.target"];
};
programs.sway = {
enable = true;
extraPackages = with pkgs; [
xwayland
wl-clipboard
(python38.withPackages (ps: with ps; [i3pystatus keyring]))
];
};
services.xserver = {
enable = true;
displayManager.defaultSession = "sway";
displayManager.sddm.enable = true;
libinput.enable = true;
layout = "de";
xkbVariant = "neo";
};
}