docs/readme: add darwin installation guide
This commit is contained in:
parent
89a2718c9f
commit
37b6537448
1 changed files with 17 additions and 0 deletions
17
README.md
17
README.md
|
@ -40,3 +40,20 @@ Please don't.
|
||||||
3. Install NixOS
|
3. Install NixOS
|
||||||
|
|
||||||
`$ nixos-install --flake <this flake's directory>#<hostname>`
|
`$ nixos-install --flake <this flake's directory>#<hostname>`
|
||||||
|
|
||||||
|
### macOS:
|
||||||
|
|
||||||
|
1. Install Nix using [`Determinate Nix Installer`](https://github.com/DeterminateSystems/nix-installer)
|
||||||
|
|
||||||
|
`$ curl --proto '=https' --tlsv1.2 -fsSL https://install.determinate.systems/nix | sh -s -- install`
|
||||||
|
|
||||||
|
2. Clone this repository
|
||||||
|
|
||||||
|
`$ git clone https://github.com/Guanran928/flake.git`
|
||||||
|
|
||||||
|
3. Add your device's hardware configuration in `./flake.nix` and
|
||||||
|
`./hosts/<hostname>`
|
||||||
|
|
||||||
|
4. Install [`nix-darwin`](https://github.com/LnL7/nix-darwin?tab=readme-ov-file#flakes)
|
||||||
|
|
||||||
|
`nix run nix-darwin -- switch --flake <this flake's directory>#<hostname>`
|
||||||
|
|
Loading…
Reference in a new issue