error: … while calling the 'head' builtin at /nix/store/7840m01bg4qkhh3kq6mlrsi3s352qkc1-source/lib/attrsets.nix:1575:11: 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … while evaluating the attribute 'value' at /nix/store/7840m01bg4qkhh3kq6mlrsi3s352qkc1-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; (stack trace truncated; use '--show-trace' to show the full trace) error: Package ‘nvidia-x11-560.31.02’ in /nix/store/h60m1fwahjd2mv6gsg77ji3vb4gpj4dk-source/pkgs/os-specific/linux/nvidia-x11/generic.nix:238 is not available on the requested hostPlatform: hostPlatform.config = "i686-unknown-linux-gnu" package.meta.platforms = [ "x86_64-linux" "aarch64-linux" ] package.meta.badPlatforms = [ ] , refusing to evaluate. a) To temporarily allow packages that are unsupported for this system, you can use an environment variable for a single invocation of the nix tools. $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake, then pass `--impure` in order to allow use of environment variables. b) For `nixos-rebuild` you can set { nixpkgs.config.allowUnsupportedSystem = true; } in configuration.nix to override this. c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add { allowUnsupportedSystem = true; } to ~/.config/nixpkgs/config.nix.