2024-03-13 00:20:41 +01:00
|
|
|
modulePath:
|
2019-08-18 10:57:30 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
let
|
2019-08-18 10:57:30 +02:00
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
cfg = getAttrFromPath modulePath config;
|
|
|
|
|
|
|
|
firefoxMockOverlay = import ./setup-firefox-mock-overlay.nix modulePath;
|
2019-08-18 10:57:30 +02:00
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
in {
|
|
|
|
imports = [ firefoxMockOverlay ];
|
2019-10-08 22:46:27 +02:00
|
|
|
|
2024-03-13 00:20:41 +01:00
|
|
|
config = lib.mkIf config.test.enableBig ({
|
|
|
|
home.stateVersion = "19.09";
|
|
|
|
} // setAttrByPath modulePath { enable = true; } // {
|
2023-10-13 08:33:10 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileRegex \
|
2024-03-13 00:20:41 +01:00
|
|
|
home-path/bin/${cfg.wrappedPackageName} \
|
2023-10-13 08:33:10 +02:00
|
|
|
MOZ_APP_LAUNCHER
|
|
|
|
'';
|
2024-03-13 00:20:41 +01:00
|
|
|
});
|
2019-08-18 10:57:30 +02:00
|
|
|
}
|