0 min
0

配置 nix

关于配置 nix 的备忘笔记

  • #workflow
  • #nix

创建 nix 目录

terminal
sumkdir -m 0755 /nixchown <USERNAME> /nixexit

安装 nix

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

检查 nix 版本

terminal
nix --version

启用 flakes

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

检查 flakes

terminal
nix flake show nixpkgs

参考

>Newsletter

Stay Updated

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