For the task I am currently working on I really need to install https://github.com/aurora/rmate on my NixOS server. It's a simple bash script so I can just wget and chmod +x it, but that feels icky. I want to have it in my configuration.nix so I can use it in the future too.
After considerable Googling I didn't find a tutorial on how to "package a bash script from the Internet". Here it is, this is what you dump into configuration.nix:
For the task I am currently working on I really need to install https://github.com/aurora/rmate on my NixOS server. It's a simple bash script so I can just
wget
andchmod +x
it, but that feels icky. I want to have it in myconfiguration.nix
so I can use it in the future too.After considerable Googling I didn't find a tutorial on how to "package a bash script from the Internet". Here it is, this is what you dump into
configuration.nix
:It would be nice if nix.dev had a section where we could collect quick recipes like this one.