about summary refs log tree commit diff
path: root/bin/install-all
diff options
context:
space:
mode:
Diffstat (limited to 'bin/install-all')
-rwxr-xr-xbin/install-all12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/install-all b/bin/install-all
new file mode 100755
index 0000000..13d9c74
--- /dev/null
+++ b/bin/install-all
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ ! -f nix-portable ]; then
+  curl -LO https://github.com/DavHau/nix-portable/releases/download/v008/nix-portable
+  chmod +x nix-portable
+
+  ./nix-portable nix-channel --add https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-21.05-small.tar.gz nixos
+  ./nix-portable nix-channel --update
+  ./nix-portable nix-shell -p cachix --run "cachix use pn"
+fi
+
+NP_MINIMAL=1 ./nix-portable nix-shell