diff options
Diffstat (limited to 'hooks/pre-up/2-nix')
-rwxr-xr-x | hooks/pre-up/2-nix | 4 |
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 |