I am trying to create a .nix file that installs nvm
First I tried to add inside configuration.nix :
system.activationScripts = {
dotfiles = pkgs.lib.stringAfters [ "users" ]
''
curl NVM_URL | bash
''
}
}
But it complained bash and curl are not defined....
So I tried to create a small .nix package,
{ stdenv, fileurl };
stdenv.mkDerivation {
name="nvm-0.33.0"
builder = ./install.sh;
fileurl{
url: NVM_GIT_MASTER.zip;
};
}
But then it complain `cannot auto-call a function that has an argument without a default valu {'stdenv'}
After running nix-build --dry-run ./text,nix
What's going on? I am reading nix pages, and banging my head on the wall.