[Nix-dev] [NixOS] How to incorporate my Bash script in configuration.nix?

Strahinja Popovic stralep at gmail.com
Tue May 9 13:26:20 CEST 2017


Thanks for help Peter,

But I have in dmesg now:

[    2.027361] stage-2-init:
/nix/store/zv42ylc0jangv5kv437577qq79v3xq5n-nixos-system-strale-17.03.1033.99dfb6dce3/activate:
line 136: /sys/bus/usb/drivers/rt2800usb/new_id: No such file or directory

How to make it to wait for kernel module?

On Tue, May 9, 2017 at 9:44 AM, Peter Hoeg <peter at hoeg.com> wrote:

> Hi,
>
>   I have made my USB WiFi to work,
>>   but I have to call this script whenever I restart the computer.
>>
>
> you can do it this way:
>
> system.activationScripts = {
>  rt2800usb = {
>    text = ''
>      echo "0b05 17e8" > /sys/bus/usb/drivers/rt2800usb/new_id
>    '';
>    deps = [];
>  };
> };
>
> --
> Regards,
> Peter
>



-- 
Strahinja Popovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170509/08c08a77/attachment.html>


More information about the nix-dev mailing list