From f9a9e0336083a61451d97d8c903583d8612dd074 Mon Sep 17 00:00:00 2001 From: lucy Date: Fri, 17 Jul 2026 23:23:48 +0200 Subject: [PATCH] silence xdg portal warnings --- configuration.nix | 3 +-- home/hyprland.nix | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index b8ca5f4..347fdc9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,6 +1,4 @@ { - config, - lib, pkgs, inputs, ... @@ -15,6 +13,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages; + system.switch.enableNg = true; nix.settings.experimental-features = [ "nix-command" "flakes" diff --git a/home/hyprland.nix b/home/hyprland.nix index 316c343..a137095 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -9,12 +9,23 @@ enable = true; package = null; systemd.enable = false; + extraConfig = '' + require("main") + ''; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; }; - extraConfig = '' - require("main") - ''; xdg.configFile."hypr/main.lua".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/home/hyprland.lua"; + xdg.portal.config = { + common = { + default = [ "gtk" ]; + }; + hyprland = { + default = [ "hyprland" ]; + "org.freedesktop.impl.portal.Secret" = [ + "gnome-keyring" + ]; + }; + }; }