這是本文件的舊版!
Nix
Select channel
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nix-channel --update
Search package
nix-env -qa PACKAGE_NAME # or use nox, install with nix-env -iA nox nox PACKAGE_NAME
Install package
nix-env -iA PACKAGE_NAME
Remove package
nix-env -e PACKAGE_NAME
List installed package
nix-env -q
Rebuild
vi /etc/nixos/configuration.nix nixos-rebuild switch
ref: