1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00
home-manager/tests/modules/misc/xdg
Timothy Gallion 038630363e
xdg-mime type package options (#5920)
* xdg-mime: allow overrides to shared-mime-info and desktop-file-utils

The `xdg-mime` module now exposes packages to determine what will be run
for update-mime-database and update-desktop-database. This allows users
to select a different version of these packages if the are incompatible.
This should, in combination with an override to the version of
`shared-mime-info` (can be found here notalltim/home-manager-config#4),
resolve #4955, #5102, #4682, and possibly #4941. The problem seems to stem
from a mismatch in the version of `shared-mime-info` with the host.

I also switched from using `buildPackages` to `pkgs` to improve
cross-compilation compatibility.

* xdg-mime: Add tests for xdg-mime module

The xdg-mime module was missing tests so I added basic test for all the
options and checked the basic behavior. It covers ensuring that the
proper files/folders are created and that the package overrides work.
2024-10-07 23:39:24 +02:00
..
default-locations.nix xdg: fix typo and add test 2021-11-20 09:47:27 +01:00
default.nix xdg-mime type package options (#5920) 2024-10-07 23:39:24 +02: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.stateFile' 2024-09-06 14:55:36 +02: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
mime-disabled.nix xdg-mime type package options (#5920) 2024-10-07 23:39:24 +02:00
mime-expected.cache xdg-mime type package options (#5920) 2024-10-07 23:39:24 +02:00
mime-packages.nix xdg-mime type package options (#5920) 2024-10-07 23:39:24 +02:00
mime.nix xdg-mime type package options (#5920) 2024-10-07 23:39:24 +02: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