mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
feat: update for darwin
This commit is contained in:
15
README.md
15
README.md
@@ -24,7 +24,9 @@ Want to know Nix in details? Looking for a beginner-friendly tutorial? Check out
|
||||
|
||||
>Note: you should NOT deploy this flake directly on your machine, it contains my hardware information and personal information which is not suitable for you. You may use this repo as a reference to build your own configuration.
|
||||
|
||||
After installed NixOS with `nix-command` & `flake` enabled, you can deploy this flake with the following command:
|
||||
After installed NixOS with `nix-command` & `flake` enabled, flow the steps below to deploy this flake.
|
||||
|
||||
For NixOS, use the following commands:
|
||||
|
||||
```bash
|
||||
# deploy my test configuration
|
||||
@@ -41,6 +43,17 @@ sudo nixos-rebuild switch
|
||||
make deploy
|
||||
```
|
||||
|
||||
For MacOS, use the following commands:
|
||||
|
||||
```bash
|
||||
# set proxy for nix-daemon to speed up downloads
|
||||
# https://github.com/NixOS/nix/issues/1472#issuecomment-1532955973
|
||||
make darwin-set-proxy
|
||||
|
||||
# or just deploy using make, which is defined in Makefile
|
||||
make darwin
|
||||
```
|
||||
|
||||
## Install Apps from Flatpak
|
||||
|
||||
We can install apps from flathub, which has a lot of apps that are not supported well in nixpkgs.
|
||||
|
||||
Reference in New Issue
Block a user