mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
29 lines
695 B
Nix
29 lines
695 B
Nix
{ lib, pkgs, ... }: let
|
|
inherit (lib.generators) toINI;
|
|
in {
|
|
xdg = {
|
|
enable = true;
|
|
autostart.enable = true;
|
|
mime.enable = true;
|
|
portal = {
|
|
xdgOpenUsePortal = true;
|
|
enable = true;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-gnome
|
|
xdg-desktop-portal-gtk
|
|
kdePackages.xdg-desktop-portal-kde
|
|
];
|
|
};
|
|
|
|
mimeApps = {
|
|
enable = true;
|
|
};
|
|
};
|
|
xdg.configFile."xdg-desktop-portal/hyprland-portals.conf".text = toINI {} {
|
|
preferred = {
|
|
default = "hyprland;gtk";
|
|
"org.freedesktop.impl.portal.FileChooser" = "kde";
|
|
"org.freedesktop.impl.portal.AppChooser" = "kde";
|
|
};
|
|
};
|
|
}
|