From 3d7208853d0f7dfdee4c0aa26a65557414aea96f Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Thu, 9 May 2024 21:23:28 -0500 Subject: Shell update --- hooks/pre-up/2-nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/pre-up/2-nix (limited to 'hooks/pre-up/2-nix') diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix new file mode 100755 index 0000000..cfba81f --- /dev/null +++ b/hooks/pre-up/2-nix @@ -0,0 +1,8 @@ +#!/bin/mksh + +if ! [ -x "$(command -v nix)" ]; then + echo "Installing Nix" + sudo install -d -m755 -o $(id -u) -g $(id -g) /nix + curl -L https://nixos.org/nix/install | sh +fi + -- cgit v1.2.3