home-manager/tests/modules/programs/firefox/container-id-out-of-range.nix

28 lines
530 B
Nix
Raw Normal View History

2024-01-25 22:08:09 +00:00
{ config, lib, ... }:
{
imports = [ ./setup-firefox-mock-overlay.nix ];
config = lib.mkIf config.test.enableBig {
test.asserts.assertions.expected =
[ "Container id must be smaller than 4294967294 (2^32 - 2)" ];
programs.firefox = {
enable = true;
profiles.my-profile = {
isDefault = true;
id = 1;
containers = {
"shopping" = {
id = 4294967294;
color = "blue";
icon = "circle";
};
};
};
};
};
}