mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
Enabling Thunderbird or Firefox always adds the wrapped package to the native messaging hosts join, so the shared module linked a .keep file into ~/.mozilla/native-messaging-hosts even when no hosts were configured. The placeholder only existed to guarantee that the joined lib/mozilla/native-messaging-hosts source path was present. Create that directory in the join's postBuild instead. An empty directory produces no links in the home directory, while real host manifests are linked as before. Whole packages are still joined rather than using stripPrefix, so relative manifest links such as passff-host's keep resolving inside the join. Also flatten nativeMessagingHosts before checking emptiness so Linux's nested [ firefox thunderbird ] list does not emit an empty ~/.mozilla/native-messaging-hosts join when only LibreWolf is enabled. Fixes #10116