0 min
1

Setup nix

A note about setup nix

  • #workflow
  • #nix
By Baiyuechu@github/baiyuechuz

Setup nix

0:00
-0:00

Create nix folder

terminal
su
mkdir -m 0755 /nix
chown <USERNAME> /nix
exit

Install nix

terminal
sh <(curl -L https://nixos.org/nix/install) --no-daemon

Chek nix version

terminal
nix --version

Turn on flakes

terminal
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Check flakes

terminal
nix flake show nixpkgs

References

Join Baiyuechu Newsletter!

Get notified when I publish new articles, tutorials, and project updates. Subscribe for insights and actionable content.