mirror of
https://github.com/ryan4yin/nixos-and-flakes-book
synced 2024-11-24 05:03:05 +00:00
1.1 KiB
1.1 KiB
Nix can be installed in multiple ways:
- Install on macOS/Linux/WSL as a package manager.
- Install NixOS, it's a Linux distribution that uses Nix to manage the entire system environment.
I chose to directly install NixOS using its official ISO image, to manage the entire system through Nix as much as possible.
The installation process is simple, and I won't go into details here.
Some materials that may be useful:
- Official installation method of Nix: written in bash script,
nix-command
&flakes
are still experimental features as of 2023-04-23, and need to be manually enabled.- You need to refer to the instructions in Enable flakes - NixOS Wiki to enable
nix-command
&flakes
. - The official installer does not provide any uninstallation method. To uninstall Nix on Linux/macOS, you need to manually delete all related files, users, and groups.
- You need to refer to the instructions in Enable flakes - NixOS Wiki to enable
- The Determinate Nix Installer: a third-party installer written in Rust, which enables
nix-command
&flakes
by default and provides an uninstallation command.