nix-config/modules/nixos/gui/xdg.nix
2026-04-15 18:26:05 -04:00

40 lines
695 B
Nix

{
config,
lib,
pkgs,
...
}:
{
# XDG Portals
xdg = {
autostart.enable = true;
portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [
# pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
config = {
common = {
default = [ "gtk" ];
};
};
};
};
environment.pathsToLink = [
"/share/applications"
"/share/xdg-desktop-portal"
];
environment.systemPackages = with pkgs; [
xdg-utils
xdg-desktop-portal
xdg-desktop-portal-gtk
wl-clipboard
];
environment.sessionVariables = {
XDG_SESSION_TYPE = "wayland";
};
}