nixos-rebuild switch --upgrade fails with error message
error: Package ‘ipu6-drivers-unstable-2024-10-10’ in /nix/store/7l0qs803mn9m9pxzwj883fdlmlh37w71-nixos-24.11/nixos/pkgs/os-specific/linux/ipu6-drivers/default.nix:49 is marked as broken, refusing to evaluate.
With NIXPKGS_ALLOW_BROKEN=1 rebuild fails presumably because header files are missing
trying https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_131.0.6778.139-1_amd64.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
/build/source/drivers/media/pci/intel/ipu6/../ipu-trace.c:15:10: fatal error: ipu-platform-regs.h: No such file or directory
15 | #include "ipu-platform-regs.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Looking at the GitHub issue you opened it seems to have been backported. Do you still encounter this issue? I just updated my flake inputs for 24.11 and got the following error:
┌─ config on main [!+] took 56s
└─> nos
> Building NixOS configuration
warning: Git tree '/home/andreas/config' is dirty
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'nixos-system-xps-24.11.20250412.26d499f'
whose name attribute is located at /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/pkgs/stdenv/generic/make-derivation.nix:396:13
… while evaluating attribute 'buildCommand' of derivation 'nixos-system-xps-24.11.20250412.26d499f'
at /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/nixos/modules/system/activation/top-level.nix:68:7:
67| passAsFile = [ "extraDependencies" ];
68| buildCommand = systemBuilder;
| ^
69|
(stack trace truncated; use '--show-trace' to show the full trace)
error: Package ‘ipu6-drivers-unstable-2024-11-19’ in /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/pkgs/os-specific/linux/ipu6-drivers/default.nix:52 is marked as broken, refusing to evaluate.
a) To temporarily allow broken packages, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_BROKEN=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.allowBroken = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
┏━ 1 Errors:
┃ error:
┃ … while calling the 'derivationStrict' builtin
┃
┃ at /builtin/derivation.nix:9:12: (source not available)
┃
┃ … while evaluating derivation 'nixos-system-xps-24.11.20250412.26d499f'
┃ whose name attribute is located at /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/pkgs/stdenv/generic/make-derivation.nix:396:13
┃
┃ … while evaluating attribute 'buildCommand' of derivation 'nixos-system-xps-24.11.20250412.26d499f'
┃
┃ at /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/nixos/modules/system/activation/top-level.nix:68:7:
┃
┃ 67| passAsFile = [ "extraDependencies" ];
┃ 68| buildCommand = systemBuilder;
┃ | ^
┃ 69|
┃
┃ (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃ error: Package ‘ipu6-drivers-unstable-2024-11-19’ in /nix/store/hzaj4d6ari2wq2cbg1j60n9zw42gnshy-source/pkgs/os-specific/linux/ipu6-drivers/default.nix:52 is marked as broken, refusing t…
┃
┃ a) To temporarily allow broken packages, you can use an environment variable
┃ for a single invocation of the nix tools.
┃
┃ $ export NIXPKGS_ALLOW_BROKEN=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.allowBroken = true; }
┃ in configuration.nix to override this.
┃
┃ c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
┃ { allowBroken = true; }
┃ to ~/.config/nixpkgs/config.nix.
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 19:57:02 after 18s
Error:
0: Command exited with status Exited(1)
Location:
src/commands.rs:151
btw the old laptop was a Dell Latitude 9430, and Linux support was really crap, even with ipu6-drivers. I would discourage most people from spending lots of time trying to make Linux run on unsupported hardware, and would recommend to choose decent hardware instead. I have a Framework laptop now and I’m super happy.
I see, thank you! Unfortunately, while the build succeeds, the webcam still doesn’t work.
If I could choose again, I definitely would have gotten the Framework instead, yeah, naive me thought getting the Dell XPS 13 Plus with Ubuntu preinstalled meant that Linux was well-supported on it… but no