diff options
Diffstat (limited to 'nixos/modules/hardware/all-firmware.nix')
-rw-r--r-- | nixos/modules/hardware/all-firmware.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/hardware/all-firmware.nix b/nixos/modules/hardware/all-firmware.nix new file mode 100644 index 00000000000..16b6a862593 --- /dev/null +++ b/nixos/modules/hardware/all-firmware.nix @@ -0,0 +1,26 @@ +{pkgs, config, ...}: + +{ + + ###### interface + + options = { + + hardware.enableAllFirmware = pkgs.lib.mkOption { + default = false; + type = pkgs.lib.types.bool; + description = '' + Turn on this option if you want to enable all the firmware shipped with Debian/Ubuntu. + ''; + }; + + }; + + + ###### implementation + + config = pkgs.lib.mkIf config.hardware.enableAllFirmware { + hardware.firmware = [ "${pkgs.firmwareLinuxNonfree}/lib/firmware" ]; + }; + +} |