Standardize rebuild script across platforms

This commit is contained in:
Dave Gallant
2021-10-24 11:03:47 -04:00
parent 48d0beb50d
commit c2e694fdf6
3 changed files with 14 additions and 19 deletions

View File

@@ -8,21 +8,16 @@ The configuration is very specific to my own machines and setup, but it may be a
## Setup
### NixOS
> on macOS: install the latest unstable nix from https://github.com/numtide/nix-unstable-installer (for nix flakes),
> and nix-darwin: https://github.com/LnL7/nix-darwin
```sh
sudo ./rebuild.sh switch
```
### macOS
1. Install the latest unstable nix from https://github.com/numtide/nix-unstable-installer (to get nix flakes)
1. Install nix-darwin: https://github.com/LnL7/nix-darwin
To run a rebuild:
```sh
./rebuild.sh switch
```
## Update
To update nixpkgs defined in [flake.nix](./flake.nix), run: