1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/programs/firefox/null-package.nix
Ihar Hrachyshka 1a78a4c7fe firefox: fix build failure when package is null
Native messaging hosts module assumed all hosts are packages, and we
were passing null before.

The patch also adds a test case for a null firefox package to avoid
regressions in the future for this common (on Darwin at least) scenario.

Note: Thunderbird doesn't need a similar change because it doesn't allow
a null package.

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-02-21 09:28:22 -08:00

10 lines
202 B
Nix

modulePath:
{ config, lib, ... }:
lib.mkIf config.test.enableBig (lib.setAttrByPath modulePath { enable = true; }
// {
programs.firefox = {
enable = true;
package = null;
};
})