curl -L https://nixos.org/nix/install | sh
To ensure that the necessary environment variables are set, either log in again, or type:
. /home/yc-user/.nix-profile/etc/profile.d/nix.sh
Create config folder:
mkdir -p ~/.config/nix
Create configurations file with flakes enabled:
cat << EOF >> ~/.config/nix/nix.conf
experimental-features = nix-command flakes
build-users-group = nixbld
EOF
Add flake configuration.
git clone https://github.com/leonidgrishenkov/nix ~/code/nix
cd
into required flake:
cd ~/code/nix/flake-1
Apply:
nix develop