From 55f1c83f5b7c2ca79e60e95015088a143eda6a90 Mon Sep 17 00:00:00 2001 From: Julien Mourer Date: Thu, 28 Apr 2022 10:30:04 +0200 Subject: [PATCH] hardware: set enableRedistributableFirmware if enableAllFirmware is set (#163014) If it works with enableRedistributableFirmware, which is a subset of enableAllFirmware, it should also work with enableAllFirmware. --- nixos/modules/hardware/all-firmware.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/hardware/all-firmware.nix b/nixos/modules/hardware/all-firmware.nix index 5b60b17312f9..74678416a15a 100644 --- a/nixos/modules/hardware/all-firmware.nix +++ b/nixos/modules/hardware/all-firmware.nix @@ -27,7 +27,8 @@ in { }; hardware.enableRedistributableFirmware = mkOption { - default = false; + default = config.hardware.enableAllFirmware; + defaultText = lib.literalExpression "config.hardware.enableAllFirmware"; type = types.bool; description = '' Turn on this option if you want to enable all the firmware with a license allowing redistribution.