diff --git a/modules/hardware/network/rt73.nix b/modules/hardware/network/rt73.nix new file mode 100644 index 00000000000..f7fae009528 --- /dev/null +++ b/modules/hardware/network/rt73.nix @@ -0,0 +1,26 @@ +{pkgs, config, ...}: + +{ + + ###### interface + + options = { + + networking.enableRT73Firmware = pkgs.lib.mkOption { + default = false; + type = pkgs.lib.types.bool; + description = '' + Turn on this option if you want firmware for the RT73 NIC + ''; + }; + + }; + + + ###### implementation + + config = pkgs.lib.mkIf config.networking.enableRT73Firmware { + hardware.firmware = [ pkgs.rt73fw ]; + }; + +} diff --git a/modules/module-list.nix b/modules/module-list.nix index 63246f44400..ca6bd0b3515 100644 --- a/modules/module-list.nix +++ b/modules/module-list.nix @@ -9,6 +9,7 @@ ./config/users-groups.nix ./hardware/network/intel-2200bg.nix ./hardware/network/intel-3945abg.nix + ./hardware/network/rt73.nix ./hardware/pcmcia.nix ./installer/grub/grub.nix ./installer/tools/nixos-checkout.nix