dotfiles/machines/common/linux/xsession.nix

59 lines
1.2 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# file management
p7zip
unzip
zip
gnome.file-roller
pcmanfm
# thumbnails
webp-pixbuf-loader
ffmpegthumbnailer
];
programs = {
dconf.enable = true;
noisetorch.enable = true;
};
2023-05-18 15:19:31 +02:00
programs.sway = {
enable = true;
extraPackages = with pkgs; [
foot
swaylock-effects
swayidle
];
extraSessionCommands = ''
# session
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
# wayland
export NIXOS_OZONE_WL=1
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
'';
wrapperFeatures = {
base = true;
gtk = true;
};
2023-05-18 15:19:31 +02:00
};
2023-05-18 19:10:41 +02:00
# needed for gnome3 pinentry
services.dbus.packages = [pkgs.gcr];
xdg.portal.enable = true;
xdg.portal.wlr.enable = true;
2023-07-03 21:23:25 +02:00
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
2023-05-18 15:19:31 +02:00
services = {
# mounting
gvfs.enable = true;
udisks2.enable = true;
devmon.enable = true;
# thumbnails
tumbler.enable = true;
};
}