Thanks Peter, it did the trick :)

On Wed, May 10, 2017 at 1:18 AM, Peter Hoeg <pe...@hoeg.com> wrote:

> Hi,
>
>   > The proper way to do this is to set up modaliases
>>
>>   Could you please elaborate further?
>>
>
> the alias in the line below depends on the exact PID and VID of your
> device so you may need to adjust it:
>
>  boot.kernelModules = [ "rt2800usb" ];
>  boot.extraModprobeConfig = ''
>    alias usb:v0B05p17E8d*dc*dsc*dp*ic*isc*ip*in* rt2800usb
>    install rt2800usb ${pkgs.kmod}/sbin/modprobe --ignore-install rt2800usb
> && echo 0x0B05 0x17E8 >/sys/bus/usb/drivers/rt2800usb/new_id
>  '';
>
> This is from: https://github.com/jethrokuan/nix-config/blob/master/desktop
> /configuration.nix
>
> --
> Regards,
> Peter
>



-- 
Strahinja Popovic
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to