Re: [Nix-dev] How to incorporate my Bash script in configuration.nix

2017-05-12 Thread Strahinja Popovic
Thank you for reply, but this is a duplicate of "[NixOS] How to incorporate my Bash script in configuration.nix?" atd it is already solved. My bad On Fri, May 12, 2017 at 3:51 PM, Profpatsch wrote: > On 17-05-12 05:02pm, Profpatsch wrote: > > systemd.service.myUsbService =

Re: [Nix-dev] How to incorporate my Bash script in configuration.nix

2017-05-12 Thread Profpatsch
On 17-05-12 05:02pm, Profpatsch wrote: > systemd.service.myUsbService = > let startupScript = '' > #!${pkgs.bash} > echo "0b05 17e8" | tee /sys/bus/usb/drivers/rt2800usb/new_id > ''; > in { > description = "get my US WiFi to work"; > wantedBy = [ "default.target" ]; >

Re: [Nix-dev] How to incorporate my Bash script in configuration.nix

2017-05-12 Thread Profpatsch
On 17-05-08 02:28pm, Strahinja Popovic wrote: > Hi everyone, > > I have made my USB WiFi to work, > but I have to call this script whenever I restart the computer. > > #!/usr/bin/env bash > echo "0b05 17e8"|sudo tee /sys/bus/usb/drivers/rt2800usb/new_id > > What is correct way to make this part

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

2017-05-12 Thread Strahinja Popovic
Hi everyone, I have made my USB WiFi to work, but I have to call this script whenever I restart the computer. #!/usr/bin/env bash echo "0b05 17e8"|sudo tee /sys/bus/usb/drivers/rt2800usb/new_id What is correct way to make this part of configuration.nix? Cheers, -- Strahinja Popovic