In the NixOS Wiki, it says to use this filter
hardware = {
raspberry-pi."4".apply-overlays-dtmerge.enable = true;
deviceTree = {
enable = true;
filter = "*rpi-4-*.dtb";
};
};
, but then I get:
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'nixos-system-pi-24.05.20240509.f1010e0'
whose name attribute is located at /nix/store/asymc3nsl739p1wwr0w6xbjnqs3qb94p-source/pkgs/stdenv/generic/make-derivation.nix:331:7
… while evaluating attribute 'buildCommand' of derivation 'nixos-system-pi-24.05.20240509.f1010e0'
at /nix/store/asymc3nsl739p1wwr0w6xbjnqs3qb94p-source/nixos/modules/system/activation/top-level.nix:53:5:
52| passAsFile = [ "extraDependencies" ];
53| buildCommand = systemBuilder;
| ^
54|
(stack trace truncated; use '--show-trace' to show the full trace)
error: The option `hardware.deviceTree.filter' has conflicting definition values:
- In `/nix/store/lwlj29my7yhn41indi3m5bvcrrc398yg-nixos-hardware/nixos-hardware/raspberry-pi/4/modesetting.nix': "bcm2711-rpi-4*.dtb"
- In `/nix/store/kx8p0ah21w6xg6pqkb9ll83jxpkyqw5x-source/configuration.nix': "*rpi-4-*.dtb"
Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.