How can I nixos-rebuild on the Pi without getting the error: serialized integer is too large for type?

I’ve updated my channels and I still see this problem.

I find it hard to understand why I find very little info on this bug, cause this surely can’t just affect the two of us.

EDIT1: Ok, here’s an active bug:

https://github.com/NixOS/nixpkgs/issues/282856

EDIT2: Ok, this workaround mentioned in the bug report seems to work;). That’s just excellent.