1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-17 08:39:44 +01:00
home-manager/tests/modules/programs/firefox/container-id-out-of-range.nix

33 lines
598 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
}