summaryrefslogtreecommitdiff
path: root/hooks/pre-up/2-nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhooks/pre-up/2-nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix
index 0cb74ba..19ba279 100755
--- a/hooks/pre-up/2-nix
+++ b/hooks/pre-up/2-nix
@@ -3,6 +3,7 @@
if ! [ -x "$(command -v nix)" ]; then
echo "Installing Nix"
doas install -d -m755 -o $(id -u) -g $(id -g) /nix
+ doas xbps-install -y xz
curl -L https://nixos.org/nix/install | sh
echo "Nix has been installed, you should run nix profile install nixpkgs#nix-direnv once profile has been refreshed"
fi