feat: update for darwin

This commit is contained in:
ryan4yin
2023-05-26 11:06:19 +08:00
parent c694c81215
commit fedcf1bafd
13 changed files with 191 additions and 44 deletions

View File

@@ -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.