at 17.09-beta 430 B view raw
1{pkgs, config, lib, ...}: 2 3{ 4 5 ###### interface 6 7 options = { 8 9 networking.enableRalinkFirmware = lib.mkOption { 10 default = false; 11 type = lib.types.bool; 12 description = '' 13 Turn on this option if you want firmware for the RT73 NIC. 14 ''; 15 }; 16 17 }; 18 19 20 ###### implementation 21 22 config = lib.mkIf config.networking.enableRalinkFirmware { 23 hardware.enableRedistributableFirmware = true; 24 }; 25 26}