2019-03-09 21:46:35 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2020-07-14 14:47:09 +00:00
|
|
|
imports = [
|
|
|
|
./common-gui.nix
|
|
|
|
];
|
2019-03-09 21:46:35 +00:00
|
|
|
|
2022-01-30 14:22:26 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2019-03-09 21:46:35 +00:00
|
|
|
i3status
|
2020-11-12 13:20:39 +00:00
|
|
|
(waybar.override { pulseSupport = true; })
|
2022-05-03 15:32:16 +00:00
|
|
|
rofi-wayland
|
2020-07-14 14:34:54 +00:00
|
|
|
ydotool
|
2022-04-16 15:07:13 +00:00
|
|
|
wtype
|
2020-08-17 09:02:28 +00:00
|
|
|
wl-clipboard
|
2019-03-09 21:46:35 +00:00
|
|
|
feh
|
2022-01-30 14:22:26 +00:00
|
|
|
gnome3.gnome-keyring
|
2019-03-09 21:46:35 +00:00
|
|
|
networkmanagerapplet
|
2019-10-11 11:04:41 +00:00
|
|
|
pcmanfm
|
2019-03-09 21:46:35 +00:00
|
|
|
evince
|
2019-03-10 08:53:33 +00:00
|
|
|
grim
|
|
|
|
mako
|
2019-03-09 21:46:35 +00:00
|
|
|
pavucontrol
|
2020-10-10 13:46:50 +00:00
|
|
|
paprefs
|
2022-01-30 14:22:26 +00:00
|
|
|
gnome3.dconf-editor
|
2019-03-09 21:46:35 +00:00
|
|
|
|
2019-03-10 16:57:25 +00:00
|
|
|
xdg_utils # for xdg-open
|
|
|
|
|
2019-03-09 21:46:35 +00:00
|
|
|
# gnome3 core packages
|
2022-03-20 13:58:40 +00:00
|
|
|
desktop-file-utils shared-mime-info
|
2019-03-09 21:46:35 +00:00
|
|
|
glib gtk3
|
2022-03-20 13:58:40 +00:00
|
|
|
glib-networking gvfs dconf
|
2022-04-07 16:50:58 +00:00
|
|
|
gnome-themes-extra gnome3.adwaita-icon-theme
|
2022-03-20 13:58:40 +00:00
|
|
|
hicolor-icon-theme
|
2019-03-09 21:46:35 +00:00
|
|
|
|
|
|
|
# for QT_QPA_PLATFORM=wayland
|
|
|
|
qt5.qtwayland
|
2020-07-14 13:09:49 +00:00
|
|
|
|
|
|
|
wdisplays
|
2019-03-09 21:46:35 +00:00
|
|
|
];
|
|
|
|
|
2020-07-14 13:09:49 +00:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: with pkgs; {
|
|
|
|
firefox = firefox-wayland;
|
|
|
|
};
|
|
|
|
|
2022-01-30 14:22:26 +00:00
|
|
|
# services.dbus.socketActivated = true;
|
2020-09-20 15:00:59 +00:00
|
|
|
|
2019-05-14 14:14:18 +00:00
|
|
|
programs.sway = {
|
2019-03-09 21:46:35 +00:00
|
|
|
enable = true;
|
|
|
|
|
2022-04-07 16:50:58 +00:00
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
|
2019-03-09 21:46:35 +00:00
|
|
|
extraSessionCommands = ''
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
2020-07-16 10:40:19 +00:00
|
|
|
|
|
|
|
# https://github.com/swaywm/sway/issues/4506
|
|
|
|
export QT_QPA_PLATFORM=xcb
|
|
|
|
# export QT_QPA_PLATFORM=wayland
|
2019-03-09 21:46:35 +00:00
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
|
|
|
|
|
|
# Fix for some Java AWT applications (e.g. Android Studio),
|
|
|
|
# use this if they aren't displayed properly:
|
2019-03-10 08:53:33 +00:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2019-03-09 21:46:35 +00:00
|
|
|
|
2020-07-14 13:09:49 +00:00
|
|
|
# rust winit's wayland support is broken for input methods
|
|
|
|
export WINIT_UNIX_BACKEND=x11
|
|
|
|
|
2019-03-09 21:46:35 +00:00
|
|
|
export XDG_DATA_DIRS=/run/current-system/sw/share/''${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS
|
2022-01-30 14:22:26 +00:00
|
|
|
export $(${pkgs.gnome3.gnome-keyring}/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
|
2020-07-16 12:49:42 +00:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
2019-03-09 21:46:35 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-07-14 13:09:49 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
libinput.enable = true;
|
2022-04-07 16:50:58 +00:00
|
|
|
# displayManager.lightdm.enable = true;
|
2020-07-14 13:09:49 +00:00
|
|
|
displayManager.defaultSession = "sway";
|
|
|
|
};
|
|
|
|
|
2020-07-14 14:47:09 +00:00
|
|
|
services.dbus.packages = with pkgs; [ mako ];
|
2020-07-14 13:09:49 +00:00
|
|
|
|
2020-07-16 12:49:42 +00:00
|
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
|
|
|
|
|
2019-03-09 21:46:35 +00:00
|
|
|
}
|