summary refs log tree commit diff
path: root/nixos/modules/hardware/all-firmware.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-10-01 20:48:40 +0300
committerK900 <me@0upti.me>2023-10-01 20:48:40 +0300
commite53c99eb17265d7000d95db909cd1494618deefa (patch)
tree74664c87c54d5be7b7a9ca31445bd2c8fa32223f /nixos/modules/hardware/all-firmware.nix
parent58aa6737113478177ad861c2ff20e10bc8ce12af (diff)
downloadnixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar.gz
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar.bz2
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar.lz
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar.xz
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.tar.zst
nixpkgs-e53c99eb17265d7000d95db909cd1494618deefa.zip
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.nix2
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.