Updated mainly terminal filchooser from browser

This commit is contained in:
2026-07-10 22:59:18 +02:00
parent 305c0c16ba
commit 0457d618e1
7 changed files with 78 additions and 14 deletions
+12 -2
View File
@@ -2,7 +2,15 @@
lib,
pkgs,
...
}: {
}: let
# Patch termfilechooser .portal to add Niri to UseIn
termfilechooser-niri = pkgs.xdg-desktop-portal-termfilechooser.overrideAttrs (old: {
postFixup = (old.postFixup or "") + ''
substituteInPlace $out/share/xdg-desktop-portal/portals/termfilechooser.portal \
--replace-fail "wlroots;" "wlroots;Niri;"
'';
});
in {
xdg.portal = {
enable = true;
config = {
@@ -13,12 +21,14 @@
"org.freedesktop.impl.portal.RemoteDesktop" = "gnome";
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
"org.freedesktop.impl.portal.OpenURI" = "gtk";
"org.freedesktop.impl.portal.OpenFile" = "gtk";
# FileChooser covers both OpenFile and SaveFile use-cases
"org.freedesktop.impl.portal.FileChooser" = "termfilechooser";
};
};
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-gnome
termfilechooser-niri
];
};
+22 -5
View File
@@ -5,13 +5,30 @@
# provide location
services.geoclue2 = {
enable = true;
geoProviderUrl = "https://beacondb.net/v1/geolocate";
submissionUrl = "https://beacondb.net/v2/geosubmit";
geoProviderUrl = "https://api.beacondb.net/v1/geolocate";
submissionUrl = "https://api.beacondb.net/v2/geosubmit";
submissionNick = "geoclue";
appConfig.gammastep = {
isAllowed = true;
isSystem = false;
appConfig = {
gammastep = {
isAllowed = true;
isSystem = false;
};
"xdg-desktop-portal" = {
isAllowed = true;
isSystem = true;
};
"gnome-weather" = {
isAllowed = true;
isSystem = true;
};
"gnome-clocks" = {
isAllowed = true;
isSystem = true;
};
};
};
# Automatically update system timezone based on location
services.automatic-timezoned.enable = true;
}