mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-21 08:21:24 +02:00
feat: migrate docs to thiscute.world
This commit is contained in:
12
README.md
12
README.md
@@ -20,19 +20,9 @@ Nix allows for easy to manage, collaborative, reproducible deployments. This mea
|
||||
|
||||
## How to install Nix and Deploy this Flake?
|
||||
|
||||
Nix can be used on Linux and MacOS, we have to method to install Nix:
|
||||
|
||||
1. [Official Way to Install Nix](https://nixos.org/download.html): writen in bash script, `nix-command` & `flake` are disabled by default till now (2023-04-23).
|
||||
1. you need to follow [Enable flakes - NixOS Wiki](https://nixos.wiki/wiki/Flakes) to enable `flake` feature.
|
||||
2. and it provide no method to uninstall nix automatically, you need to delte all resources & users & group(`nixbld`) manually.
|
||||
2. [The Determinate Nix Installer](https://github.com/DeterminateSystems/nix-installer): writen mainly in Rust, enable `nix-command` & `flake` by default, and offer an easy way to uninstall Nix.
|
||||
|
||||
After installed Nix with `nix-command` & `flake` enabled, you can deploy this flake with the following command:
|
||||
After installed NixOS with `nix-command` & `flake` enabled, you can deploy this flake with the following command:
|
||||
|
||||
```bash
|
||||
sudo nixos-rebuild switch .#nixos-test
|
||||
```
|
||||
|
||||
## References
|
||||
|
||||
- [Nix Basics](./Nix_Basics.md)
|
||||
|
||||
Reference in New Issue
Block a user