aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2025-07-04 17:58:28 +0200
committerMiran Bastaja <mbastaja@sorre.xyz>2025-07-04 17:58:46 +0200
commitb73c68c77de23c2d3be5b35621845289c49acea3 (patch)
tree945911ec2fc4e2d3b56518ff103f912322132e2d
parent2cc0d08c0468e678fb7a942abf23fc2a1eec010f (diff)
niri: configure XDG desktop portals
-rw-r--r--share/home/niri.nix24
1 files changed, 21 insertions, 3 deletions
diff --git a/share/home/niri.nix b/share/home/niri.nix
index eb5822d..8b2ad4c 100644
--- a/share/home/niri.nix
+++ b/share/home/niri.nix
@@ -2,13 +2,10 @@
pkgs,
config,
inputs,
- lib,
...
}:
let
- cfg = config.programs.niri;
tomlFormat = pkgs.formats.toml { };
- inherit (lib) mkIf;
in
{
imports = [
@@ -19,6 +16,7 @@ in
programs.kitty.enable = true;
home.packages = [
pkgs.wpaperd # for wpaperctl
+ pkgs.gnome-keyring
];
programs.niri.settings = {
@@ -244,6 +242,26 @@ in
};
};
+ xdg.portal = {
+ enable = true;
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-gtk
+ xdg-desktop-portal-gnome
+ ];
+ xdgOpenUsePortal = true;
+ config = {
+ niri = {
+ default = [
+ "gnome"
+ "gtk"
+ ];
+ "org.freedesktop.impl.portal.Secret" = [
+ "gnome-keyring"
+ ];
+ };
+ };
+ };
+
# wpaperd manual config
#
# Can't use the HM module since it doesn't expose the service target as a