diff --git a/modules/hardware/network/rtl8192c.nix b/modules/hardware/network/rtl8192c.nix new file mode 100644 index 00000000000..fe9644c23a2 --- /dev/null +++ b/modules/hardware/network/rtl8192c.nix @@ -0,0 +1,26 @@ +{pkgs, config, ...}: + +{ + + ###### interface + + options = { + + networking.enableRTL8192cFirmware = pkgs.lib.mkOption { + default = false; + type = pkgs.lib.types.bool; + description = '' + Turn on this option if you want firmware for the RTL8192c (and related) NICs + ''; + }; + + }; + + + ###### implementation + + config = pkgs.lib.mkIf config.networking.enableRTL8192cFirmware { + hardware.firmware = [ pkgs.rtl8192cfw ]; + }; + +} diff --git a/modules/module-list.nix b/modules/module-list.nix index b23eeea8797..369d942d7a6 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -17,6 +17,7 @@ ./hardware/network/intel-2200bg.nix ./hardware/network/intel-3945abg.nix ./hardware/network/rt73.nix + ./hardware/network/rtl8192c.nix ./hardware/pcmcia.nix ./installer/generations-dir/generations-dir.nix ./installer/grub/grub.nix