dotfiles/machines/common/linux/session.nix

67 lines
1.3 KiB
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
# file management
p7zip
unzip
zip
gnome.file-roller
gnome.nautilus
gnome.sushi
# thumbnails
webp-pixbuf-loader
ffmpegthumbnailer
];
programs = {
dconf.enable = true;
noisetorch.enable = true;
};
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;
};
};
services.dbus.packages = with pkgs; [
darkman
# gcr needed for gnome3 pinentry, managed in Home-Manager
gcr
gnome.sushi
];
xdg.portal.enable = true;
xdg.portal.wlr.enable = true;
xdg.portal.extraPortals = with pkgs; [
darkman
xdg-desktop-portal-gtk
];
services = {
# mounting
gvfs.enable = true;
udisks2.enable = true;
devmon.enable = true;
# thumbnails
tumbler.enable = true;
};
}