small update

This commit is contained in:
Bloxx12 2025-07-13 22:51:22 +02:00
commit b1490ec9a8
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
100 changed files with 187 additions and 1695 deletions

View file

@ -0,0 +1,49 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.lists) optional;
in {
xdg.portal = {
enable = true;
# Sets environment variable NIXOS_XDG_OPEN_USE_PORTAL to 1.
# This will make xdg-open use the portal to open programs,
# which resolves bugs involving programs opening inside FHS envs
# or with unexpected env vars set from wrappers.
# See #160923 for more info.
xdgOpenUsePortal = true;
extraPortals =
[
pkgs.xdg-desktop-portal-gtk
pkgs.kdePackages.xdg-desktop-portal-kde
]
++ (
optional config.programs.niri.enable
pkgs.xdg-desktop-portal-gnome
)
++ (
optional config.programs.hyprland.enable
pkgs.xdg-desktop-portal-hyprland
);
config = {
hyprland.default = mkIf config.programs.hyprland.enable ["*"];
niri = {
default = [
"gnome"
"gtk"
"kde"
];
# Portal API reference:
# https://docs.flatpak.org/en/latest/portal-api-reference.html
# "org.freedesktop.impl.portal.Access" = ["kde"];
# "org.freedesktop.impl.portal.Notification" = ["kde"];
"org.freedesktop.impl.portal.FileChooser" = ["kde"];
};
};
};
environment.variables = {
};
}