nix
https://juliu.is/ditch-your-version-manager/
https://github.com/tianheg/tianheg/issues/40
作者介绍了 [Nix: the package manager](https://nixos.org/)。
> Nix is a tool that takes a unique approach to package management and system configuration. Learn how to make reproducible, declarative and reliable systems.
## 环境配置(Archlinux)
安装:
```bash
sudo pacman -S nix nix-channel –add https://nixos.org/channels/nixpkgs-unstable nix-channel –update nix-env -u source /etc/profile.d/nix{,-daemon}.sh sudo systemctl enable nix-daemon.service sudo usermod -aG nix-users archie ```
If you installed Nix from the official repositories, you must add the `~/.nix-profile/bin` directory to your PATH manually.
卸载:
```bash sudo pacman -Rs nix rm -r ~/.nix-channels ~/.nix-defexpr ~/.nix-profile sudo rm -r /nix
```