nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.28k stars 1.68k forks source link

xdg-desktop-portal warning showing up on each rebuild #5529

Open unclechu opened 3 weeks ago

unclechu commented 3 weeks ago

Each system rebuild I get this warning about xdg-desktop-portal:

$ sudo nixos-rebuild switch --show-trace
building Nix...
building the system configuration...
trace: warning: xdg-desktop-portal 1.17 reworked how portal implementations are loaded, you
should either set `xdg.portal.config` or `xdg.portal.configPackages`
to specify which portal backend to use for the requested interface.

https://github.com/flatpak/xdg-desktop-portal/blob/1.18.1/doc/portals.conf.rst.in

If you simply want to keep the behaviour in < 1.17, which uses the first
portal implementation found in lexicographical order, use the following:

xdg.portal.config.common.default = "*";

updating GRUB 2 menu...
activating the configuration...
setting up /etc...
reloading user units for wenzel...
restarting sysinit-reactivation.target
the following new units were started: libvirtd.service

I’m not sure how to track where exactly does it come from but my assumption it is Home Manager. This warning shows up since NixOS 23.11 (release-23.11 Home Manager branch) and still there on NixOS 24.05 (release-24.05 Home Manager branch). Can I do something about it or is a change needed in Home Manager?

jaredmontoya commented 1 week ago

@unclechu там написано що після оновлення спосіб конфігурації xdg порталів змінився, тобто треба внести зміни у свою конфігурацію. Приклади можна подивитися або напряму в коді або тут: https://home-manager-options.extranix.com/?query=xdg.portal&release=master

також там написано що зробити щоб ігнорувати зміни і залишити все як є:

xdg.portal.config.common.default = "*";