nixos/sway.nix

51 lines
1 KiB
Nix
Raw Normal View History

2020-11-16 21:14:46 +01:00
{ config, lib, pkgs, ... }:
{
programs.light.enable = true;
environment.systemPackages = with pkgs; [
polkit_gnome
];
environment.pathsToLink = [ "/libexec" ];
2021-06-02 10:37:28 +02:00
programs.wshowkeys.enable = true;
2020-11-16 21:14:46 +01:00
programs.sway = {
enable = true;
wrapperFeatures = {
gtk = true;
base = true;
};
extraPackages = with pkgs; [
alacritty
brightnessctl
dmenu
gammastep
grim
2021-06-02 10:37:28 +02:00
i3status-rust
2020-11-16 21:14:46 +01:00
mako
slurp
swayidle
swaylock
wdisplays
wf-recorder
wl-clipboard
wofi
xwayland
2021-06-02 10:37:28 +02:00
wshowkeys
2020-11-16 21:14:46 +01:00
];
2022-02-22 23:14:45 +01:00
extraSessionCommands = ''
2020-11-16 21:14:46 +01:00
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export _JAVA_AWT_WM_NONREPARENTING=1
export CLUTTER_BACKEND=wayland
export SAL_USE_VCLPLUGIN=gtk3
export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
2021-03-29 23:29:49 +02:00
'';
2020-11-16 21:14:46 +01:00
};
}