silence xdg portal warnings

This commit is contained in:
lucy 2026-07-17 23:23:48 +02:00
commit f9a9e03360
2 changed files with 15 additions and 5 deletions

View file

@ -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"

View file

@ -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"
];
};
};
}