2024-07-11 14:27:27 +02:00
|
|
|
modulePath:
|
2025-03-07 14:16:46 -06:00
|
|
|
{ config, lib, ... }:
|
2024-07-11 14:27:27 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2025-03-07 14:16:46 -06:00
|
|
|
cfg = lib.getAttrFromPath modulePath config;
|
2024-07-11 14:27:27 +02:00
|
|
|
|
|
|
|
firefoxMockOverlay = import ../../setup-firefox-mock-overlay.nix modulePath;
|
|
|
|
|
|
|
|
in {
|
|
|
|
imports = [ firefoxMockOverlay ];
|
|
|
|
|
2025-03-07 14:16:46 -06:00
|
|
|
config = lib.mkIf config.test.enableBig (lib.setAttrByPath modulePath {
|
2024-07-11 14:27:27 +02:00
|
|
|
enable = true;
|
|
|
|
profiles = {
|
|
|
|
basic.isDefault = true;
|
|
|
|
test = {
|
|
|
|
id = 6;
|
|
|
|
preConfig = ''
|
|
|
|
user_pref("browser.search.suggest.enabled", false);
|
|
|
|
'';
|
|
|
|
settings = { "browser.search.suggest.enabled" = true; };
|
|
|
|
extraConfig = ''
|
|
|
|
user_pref("findbar.highlightAll", true);
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} // {
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileRegex \
|
|
|
|
home-path/bin/${cfg.wrappedPackageName} \
|
|
|
|
MOZ_APP_LAUNCHER
|
|
|
|
|
|
|
|
assertDirectoryExists home-files/${cfg.configPath}/basic
|
|
|
|
|
|
|
|
assertFileContent \
|
|
|
|
home-files/${cfg.configPath}/test/user.js \
|
|
|
|
${./expected-user.js}
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
}
|