mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-12 11:46:57 +00:00
32 lines
784 B
Nix
32 lines
784 B
Nix
|
modulePath:
|
||
|
{ config, lib, pkgs, ... }:
|
||
|
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.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/uBlock0@raymondhill.net/storage.js \
|
||
|
${./expected-storage.js}
|
||
|
'';
|
||
|
});
|
||
|
}
|