diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-07 07:19:53 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-07 07:19:53 -0500 |
commit | 1fc9dcec8d2c762f5c72830d0dacacd2090a5724 (patch) | |
tree | e7990f5685027e5f3df177dbde5e3820b9c6f856 | |
parent | 6b232abf8721acf1800c0b4297f2d4578a27901b (diff) | |
download | rcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.tar.gz rcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.tar.bz2 rcm-1fc9dcec8d2c762f5c72830d0dacacd2090a5724.zip |
Nix install hook
-rwxr-xr-x | hooks/pre-up/nix | 6 |
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 + |