dotfiles/entropy/nixos/modules/sway.nix

53 lines
1.4 KiB
Nix
Raw Normal View History

2021-05-18 12:09:48 +00:00
{ pkgs, ... }:
{
programs.sway = {
enable = true;
wrapperFeatures.gtk = true; # so that gtk works properly
extraPackages = with pkgs; [
swaylock
swayidle
xwayland # for legacy apps
waybar
wl-clipboard
mako # notification daemon
2021-10-14 14:15:27 +00:00
#dmenu # Dmenu is the default in the config but i recommend wofi since its wayland native
bemenu
2021-05-18 12:09:48 +00:00
kanshi # replacement for autorandr
sway-contrib.grimshot
imv # image viewer
];
extraSessionCommands = ''
export SDL_VIDEODRIVER=wayland
# needs qt5.qtwayland in systemPackages
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
# Fix for some Java AWT applications (e.g. Android Studio),
# use this if they aren't displayed properly:
export _JAVA_AWT_WM_NONREPARENTING=1
2021-10-14 14:15:27 +00:00
# firefox x11 <-> wayland interoperability
export MOZ_DBUS_REMOTE=1
2021-05-18 12:09:48 +00:00
'';
};
2021-11-18 18:04:41 +00:00
programs.waybar.enable = true;
2021-05-18 12:09:48 +00:00
2021-11-18 18:04:41 +00:00
services.redshift = {
enable = true;
package = pkgs.redshift-wlr;
temperature.night = 3500;
};
2021-05-18 12:09:48 +00:00
2021-11-18 18:04:41 +00:00
# ------------ Display Manager ----------------------------------------------
# use sddm for authentication
2021-05-18 12:09:48 +00:00
services.xserver.enable = true;
2021-10-14 14:15:27 +00:00
#services.xserver.displayManager.gdm = {
#enable = true;
#wayland = true;
#};
services.xserver.displayManager.sddm = {
2021-05-18 12:09:48 +00:00
enable = true;
};
}