nixos-configuration/sway.nix
2020-08-27 13:08:35 +02:00

46 lines
873 B
Nix

{ config, lib, pkgs, ... }:
{
# environment.systemPackages = with pkgs; [
# sway
# ];
# nixpkgs.overlays = [
# (self: super: {
# sway = super.neovim.override {
# extraOptions = [
# "--unsupported-gpu"
# ];
# };
# })
# ];
programs.sway = {
enable = true;
# extraOptions = [
# "--unsupported-gpu"
# ];
extraPackages = with pkgs; [
alacritty
grim
mako
redshift-wlr
slurp
swayidle
swaylock
waybar
wl-clipboard
wofi
xwayland
];
extraSessionCommands =
''
export XKB_DEFAULT_LAYOUT=de
export XKB_DEFAULT_VARIANT=neo
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export ELM_ENGINE=wayland_shm
export GDK_BACKEND=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
'';
};
}