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

Peter Hoeg peter at hoeg.com
Tue May 9 11:44:24 CEST 2017


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


More information about the nix-dev mailing list