2024-03-13 00:20:41 +01:00
|
|
|
modulePath:
|
2023-10-13 08:34:11 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
with lib;
|
2023-10-13 08:34:11 +02:00
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
let
|
|
|
|
|
|
|
|
cfg = getAttrFromPath modulePath config;
|
|
|
|
|
|
|
|
firefoxMockOverlay = import ./setup-firefox-mock-overlay.nix modulePath;
|
|
|
|
|
|
|
|
in {
|
|
|
|
imports = [ firefoxMockOverlay ];
|
|
|
|
|
|
|
|
config = mkIf config.test.enableBig ({
|
2023-10-13 08:34:11 +02:00
|
|
|
test.asserts.assertions.expected = [''
|
2024-03-13 00:20:41 +01:00
|
|
|
Must not have a ${cfg.name} profile with an existing ID but
|
2023-10-13 08:34:11 +02:00
|
|
|
- ID 1 is used by first, second''];
|
2024-03-13 00:20:41 +01:00
|
|
|
} // setAttrByPath modulePath {
|
|
|
|
enable = true;
|
2023-10-13 08:34:11 +02:00
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
profiles = {
|
|
|
|
first = {
|
|
|
|
isDefault = true;
|
|
|
|
id = 1;
|
2023-10-13 08:34:11 +02:00
|
|
|
};
|
2024-03-13 00:20:41 +01:00
|
|
|
second = { id = 1; };
|
2023-10-13 08:34:11 +02:00
|
|
|
};
|
2024-03-13 00:20:41 +01:00
|
|
|
});
|
2023-10-13 08:34:11 +02:00
|
|
|
}
|