mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
Wasn't actually running test because it wasn't included. Also had to fix test after some of the recent changes.
36 lines
901 B
Nix
36 lines
901 B
Nix
modulePath:
|
|
{ config, lib, ... }:
|
|
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 = {
|
|
extensions = {
|
|
force = true;
|
|
settings = {
|
|
"uBlock0@raymondhill.net".settings = {
|
|
selectedFilterLists = [
|
|
"ublock-filters"
|
|
"ublock-badware"
|
|
"ublock-privacy"
|
|
"ublock-unbreak"
|
|
"ublock-quick-fixes"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} // {
|
|
nmt.script = ''
|
|
assertFileContent \
|
|
home-files/${cfg.configPath}/extensions/browser-extension-data/uBlock0@raymondhill.net/storage.js \
|
|
${./expected-storage.js}
|
|
'';
|
|
});
|
|
}
|