1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-09 12:49:44 +01:00
home-manager/tests/modules/misc/xdg
Gabriel Fontes 1c2acec999
xdg-portal: align with NixOS module
Nixpkgs has recently made a few major changes to its
xdg-desktop-portal package, which silently breaks our module here:

- The NIXOS_XDG_DESKTOP_PORTAL_CONFIG_DIR variable patch has been
  removed (in favor of putting portal configurations in /etc or
  XDG_CONFIG_HOME).

- A new variable, NIX_XDG_DESKTOP_PORTAL_DIR, was introduced in a
  patch to avoid setting XDG_DESKTOP_PORTAL_DIR (which also affected
  portal configuration reading, not only portal definitions)

I updated our module to match the changes, but this breakage also made
me revisit this module and look into some improvements.

Long story short, I think it's worth it to make it more similar to the
NixOS one, as it will make behavior more predictable and consistent.
The main change is relying on the upstream linked systemd
unit (instead of using systemd.user.services), and setting the
environment variables globally instead of scoping it to the unit, as
it's a very global thing anyway.
2024-03-20 23:41:55 +01:00
..
default-locations.nix xdg: fix typo and add test 2021-11-20 09:47:27 +01:00
default.nix xdg-portal: add new module 2024-01-03 20:51:54 +01:00
desktop-entries.nix xdg-desktop-entries: make exec default to null (#3827) 2023-04-04 10:41:46 +02:00
desktop-full-expected.desktop xdg-desktop-entries: add 'actions' option, deprecate fileValidation (#2778) 2022-04-17 18:06:09 -04:00
desktop-min-expected.desktop xdg-desktop-entries: make exec default to null (#3827) 2023-04-04 10:41:46 +02:00
file-gen.nix xdg: add option 'xdg.stateHome' (#2439) 2021-11-04 17:42:44 +01:00
mime-apps-basics-expected.ini xdg-mime-apps: add module 2019-09-15 17:21:42 +02:00
mime-apps-basics.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
portal.nix xdg-portal: align with NixOS module 2024-03-20 23:41:55 +01:00
sway-portals-expected.conf xdg-portal: add new module 2024-01-03 20:51:54 +01:00
system-dirs.nix i18n: Use glibcLocales from NixOS if possible (#2333) (#4177) 2023-07-04 11:28:25 +02:00
user-dirs-null.nix xdg-user-dirs: allow setting to null to skip setting 2022-11-13 10:38:54 +01:00