diff --git a/system/hardware/default.nix b/system/hardware/default.nix index 8674054..2dbc2c1 100644 --- a/system/hardware/default.nix +++ b/system/hardware/default.nix @@ -2,5 +2,6 @@ _: { imports = [ ./cpu ./tpm.nix + ./generic.nix ]; } diff --git a/system/hardware/generic.nix b/system/hardware/generic.nix new file mode 100644 index 0000000..9e34b69 --- /dev/null +++ b/system/hardware/generic.nix @@ -0,0 +1,9 @@ +{lib, ...}: { + # This enables non-free firmware on devices not recognized by `nixos-generate-config`. + # Disabling this option will make the system unbootable if such devices are critical + # in your boot chain - therefore this should remain true until you are running a device + # with mostly libre firmware. Which there is not many of. + # Without this, it defaults to `config.hardware.enableAllFirmware`. + hardware.enableRedistributableFirmware = lib.mkDefault true; +} +