1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

firefox: fix selection of lastUserContextId

The lastUserContextId value should match the highest context ID from
the containers set in a given profile. This update ensures that this
always is the case.

(cherry picked from commit ec4c6928bb)
This commit is contained in:
Nina Morgan 2024-09-08 03:52:15 -04:00 committed by Robert Helgesson
parent 208df2e558
commit 2ab00f89dd
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -89,7 +89,8 @@ let
${builtins.toJSON { ${builtins.toJSON {
version = 4; version = 4;
lastUserContextId = lastUserContextId =
elemAt (mapAttrsToList (_: container: container.id) containers) 0; foldlAttrs (acc: _: value: if value.id > acc then value.id else acc) 0
containers;
identities = mapAttrsToList containerToIdentity containers ++ [ identities = mapAttrsToList containerToIdentity containers ++ [
{ {
userContextId = 4294967294; # 2^32 - 2 userContextId = 4294967294; # 2^32 - 2