2024-10-07 17:06:52 -04:00
|
|
|
modulePath:
|
2025-03-18 22:58:00 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let firefoxMockOverlay = import ../../setup-firefox-mock-overlay.nix modulePath;
|
2024-10-07 17:06:52 -04:00
|
|
|
in {
|
|
|
|
imports = [ firefoxMockOverlay ];
|
|
|
|
|
2025-03-07 14:16:46 -06:00
|
|
|
config = lib.mkIf config.test.enableBig (lib.setAttrByPath modulePath {
|
2024-10-07 17:06:52 -04:00
|
|
|
enable = true;
|
|
|
|
profiles.containers = {
|
|
|
|
containers = {
|
|
|
|
"shopping" = {
|
|
|
|
icon = "circle";
|
|
|
|
color = "yellow";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} // {
|
2025-03-18 22:58:00 -04:00
|
|
|
nmt.script = let
|
|
|
|
isDarwin = pkgs.stdenv.hostPlatform.isDarwin;
|
|
|
|
profilePath = if isDarwin then
|
|
|
|
"Library/Application Support/Firefox/Profiles"
|
|
|
|
else
|
|
|
|
".mozilla/firefox";
|
|
|
|
in ''
|
2024-10-07 17:06:52 -04:00
|
|
|
assertFileContent \
|
2025-03-18 22:58:00 -04:00
|
|
|
"home-files/${profilePath}/containers/containers.json" \
|
2024-10-07 17:06:52 -04:00
|
|
|
${./expected-containers.json}
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
}
|