diff options
Diffstat (limited to 'nixos/modules/installer/scan')
-rw-r--r-- | nixos/modules/installer/scan/detected.nix | 12 | ||||
-rw-r--r-- | nixos/modules/installer/scan/not-detected.nix | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/nixos/modules/installer/scan/detected.nix b/nixos/modules/installer/scan/detected.nix new file mode 100644 index 00000000000..5c5fba56f51 --- /dev/null +++ b/nixos/modules/installer/scan/detected.nix @@ -0,0 +1,12 @@ +# List all devices which are detected by nixos-generate-config. +# Common devices are enabled by default. +{ lib, ... }: + +with lib; + +{ + config = mkDefault { + # Common firmware, i.e. for wifi cards + hardware.enableRedistributableFirmware = true; + }; +} diff --git a/nixos/modules/installer/scan/not-detected.nix b/nixos/modules/installer/scan/not-detected.nix new file mode 100644 index 00000000000..baa068c08db --- /dev/null +++ b/nixos/modules/installer/scan/not-detected.nix @@ -0,0 +1,6 @@ +# Enables non-free firmware on devices not recognized by `nixos-generate-config`. +{ lib, ... }: + +{ + hardware.enableRedistributableFirmware = lib.mkDefault true; +} |