2025-01-31 09:22:38 +00:00
|
|
|
modulePath:
|
2025-02-21 20:41:22 -08:00
|
|
|
{ config, lib, ... }:
|
2025-01-31 09:22:38 +00:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = getAttrFromPath modulePath config;
|
|
|
|
|
|
|
|
firefoxMockOverlay = import ../../setup-firefox-mock-overlay.nix modulePath;
|
|
|
|
in {
|
|
|
|
imports = [ firefoxMockOverlay ];
|
|
|
|
|
|
|
|
config = mkIf config.test.enableBig (setAttrByPath modulePath {
|
|
|
|
enable = true;
|
|
|
|
profiles.extensions = {
|
2025-02-21 20:41:22 -08:00
|
|
|
extensions = {
|
|
|
|
force = true;
|
|
|
|
settings = {
|
|
|
|
"uBlock0@raymondhill.net".settings = {
|
|
|
|
selectedFilterLists = [
|
|
|
|
"ublock-filters"
|
|
|
|
"ublock-badware"
|
|
|
|
"ublock-privacy"
|
|
|
|
"ublock-unbreak"
|
|
|
|
"ublock-quick-fixes"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2025-01-31 09:22:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
} // {
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContent \
|
2025-02-21 20:41:22 -08:00
|
|
|
home-files/${cfg.configPath}/extensions/browser-extension-data/uBlock0@raymondhill.net/storage.js \
|
2025-01-31 09:22:38 +00:00
|
|
|
${./expected-storage.js}
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
}
|