summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-07 07:19:53 -0500
committerMarc Coquand <marc@mccd.space>2024-05-07 07:19:53 -0500
commit1fc9dcec8d2c762f5c72830d0dacacd2090a5724 (patch)
treee7990f5685027e5f3df177dbde5e3820b9c6f856
parent6b232abf8721acf1800c0b4297f2d4578a27901b (diff)
downloadrcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.tar.gz
rcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.tar.bz2
rcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.zip
Nix install hook
-rwxr-xr-xhooks/pre-up/nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/hooks/pre-up/nix b/hooks/pre-up/nix
new file mode 100755
index 0000000..84c077e
--- /dev/null
+++ b/hooks/pre-up/nix
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+if ! [ -x "$(command -v nix)" ]; then
+ sh <(curl -L https://nixos.org/nix/install) --no-daemon
+fi
+