mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00: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.
This commit is contained in:
parent
aaebdea769
commit
ec4c6928bb
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,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
|
||||||
|
|
Loading…
Reference in a new issue