1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 20:59:47 +01:00
home-manager/tests/modules/programs/firefox/profiles/containers/id-out-of-range.nix

33 lines
602 B
Nix
Raw Normal View History

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