summary refs log tree commit diff
path: root/modules/hardware/network/rt73.nix
blob: f7fae0095284f204f8cf55af4c60ae3ed13eb9ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ];
  };
  
}