mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
27 lines
451 B
Nix
27 lines
451 B
Nix
{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;
|
|
};
|
|
|
|
}
|