about summary refs log tree commit diff
path: root/nixos/modules/hardware/network/rtl8192c.nix
blob: 3aefb7bdd6088e8d92183b5208828201aaebec4d (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.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.enableAllFirmware = true;
  };

}