summaryrefslogtreecommitdiff
path: root/hooks/pre-up/2-nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-06-08 12:12:57 -0500
committerMarc Coquand <marc@mccd.space>2024-06-08 12:12:57 -0500
commitfdc18aae269d612d9a4fda6545f89aa3ee7f09a0 (patch)
treeb33d472c26fedc846a1faff9f688b731d8297f27 /hooks/pre-up/2-nix
parent8dc801597a3b7d5464580b55626d1ccd6c0a444b (diff)
downloadrcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.tar.gz
rcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.tar.bz2
rcm-fdc18aae269d612d9a4fda6545f89aa3ee7f09a0.zip
Updates
Diffstat (limited to 'hooks/pre-up/2-nix')
-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