summary refs log tree commit diff
path: root/nixos/modules/hardware/network/ralink.nix
blob: 36182e2cb99676bdf58cda72f61b1284a008603e (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, lib, ...}:

{

  ###### interface

  options = {

    networking.enableRalinkFirmware = lib.mkOption {
      default = false;
      type = lib.types.bool;
      description = ''
        Turn on this option if you want firmware for the RT73 NIC.
      '';
    };

  };


  ###### implementation

  config = lib.mkIf config.networking.enableRalinkFirmware {
    hardware.enableRedistributableFirmware = true;
  };

}