blob: 0cb74bac2091158ba8487b2d741f93eafdec07c1 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
if ! [ -x "$(command -v nix)" ]; then
echo "Installing Nix"
doas install -d -m755 -o $(id -u) -g $(id -g) /nix
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
|