Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 674 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 674 Bytes

Install nix

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

Enable flake feature

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

Use flake

Add flake configuration.

git clone https://github.com/leonidgrishenkov/nix ~/code/nix

cd into required flake:

cd ~/code/nix/flake-1

Apply:

nix develop