summaryrefslogtreecommitdiff
path: root/hooks/pre-up/2-nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
committerMarc Coquand <marc@mccd.space>2024-05-29 12:51:04 -0500
commitc2fcd44b6a64ec7fd44f364a64396f680babbf8d (patch)
treeb7d0b5902d682985392991ae430ef9fef2431e03 /hooks/pre-up/2-nix
parent3b42452a37117bace208a2085980e7c1b79b3738 (diff)
downloadrcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.gz
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.tar.bz2
rcm-c2fcd44b6a64ec7fd44f364a64396f680babbf8d.zip
Updates
Diffstat (limited to 'hooks/pre-up/2-nix')
-rwxr-xr-xhooks/pre-up/2-nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/pre-up/2-nix b/hooks/pre-up/2-nix
index 0a457ee..0cb74ba 100755
--- a/hooks/pre-up/2-nix
+++ b/hooks/pre-up/2-nix
@@ -2,8 +2,8 @@
if ! [ -x "$(command -v nix)" ]; then
echo "Installing Nix"
- sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
+ doas install -d -m755 -o $(id -u) -g $(id -g) /nix
curl -L https://nixos.org/nix/install | sh
- nix profile install nixpkgs#nix-direnv
+ echo "Nix has been installed, you should run nix profile install nixpkgs#nix-direnv once profile has been refreshed"
fi