diff options
treewide: use `pkgs.config` instead of `config.nixpkgs.config`
`pkgs` may be passed in externally, in which case `config.nixpkgs.config` will not be set. Follow-up to #257458.
Diffstat (limited to 'nixos/modules/hardware/all-firmware.nix')
-rw-r--r-- | nixos/modules/hardware/all-firmware.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/all-firmware.nix b/nixos/modules/hardware/all-firmware.nix index 9e7a01c58af..08141bb0e87 100644 --- a/nixos/modules/hardware/all-firmware.nix +++ b/nixos/modules/hardware/all-firmware.nix @@ -69,7 +69,7 @@ in { }) (mkIf cfg.enableAllFirmware { assertions = [{ - assertion = !cfg.enableAllFirmware || config.nixpkgs.config.allowUnfree; + assertion = !cfg.enableAllFirmware || pkgs.config.allowUnfree; message = '' the list of hardware.enableAllFirmware contains non-redistributable licensed firmware files. This requires nixpkgs.config.allowUnfree to be true. |