Update README.md
This commit is contained in:
24
README.md
24
README.md
@@ -16,20 +16,18 @@ sudo mkdir -p /etc/nix-darwin
|
||||
sudo chown $(id -nu):$(id -ng) /etc/nix-darwin
|
||||
sudo cp [PATH/TO/REPO] /etc/nix-darwin
|
||||
```
|
||||
4. `cd /etc/nix-darwin`
|
||||
5. Choose which profile to use and run one of the following commands
|
||||
4. Install nix-darwin and the profile you want with
|
||||
```bash
|
||||
# personal use option
|
||||
sudo darwin-rebuild switch --flake ".#personal"
|
||||
|
||||
# work option
|
||||
sudo darwin-rebuild switch --flake ".#work"
|
||||
sudo nix run nix-darwin/nix-darwin-26.05#darwin-rebuild --extra-experimental-features "nix-command flakes" -- switch --flake "/etc/nix-darwin#PROFILE_NAME"
|
||||
# where PROFILE_NAME is either personal or work
|
||||
```
|
||||
5. Maintianing nix-darwin if any changes get made locally you can run the rebuild switch command. If changes get made remotely make sure to run `git pull` then the rebuild switch command.
|
||||
```bash
|
||||
cd /etc/nix-darwin
|
||||
|
||||
git pull
|
||||
|
||||
sudo darwin-rebuild switch --flake ".#PROFILE"
|
||||
```
|
||||
## Homebrew
|
||||
I like using homebrew as my package manager for most apps as its really easy and convienent to run `brew upgrade` to update all apps in 1 go. I love nix for many other reasons but some of the packages on the stable branch aren't always up-to-date and take a while to update.
|
||||
|
||||
## Future Options
|
||||
I like the option of setting the dock up using some of the options in nix-darwin but only on initial build. I found that getting the macOS machine setup with nix-darwin and setting all the dock apps was cool but if you made changes to to dock for whatever reason (installing a new app, having a different prefernce, etc.), rebuilding the system would then set the dock back to the original option.
|
||||
|
||||
I think that the use of Homebrew can help with this a little bit in the sense that I can update most apps without having to rebuild the system. So making changes to the dock via the "normal" click and drag on macOS can stay persistent for the most part but remembering to set the change in the config will be important for rebuilds.
|
||||
I like using homebrew as my package manager for most apps as its really easy and convienent to run `brew upgrade` to update all apps in 1 go. I love nix for many other reasons but some of the packages on the stable branch aren't always up-to-date and take a while to update.
|
||||
Reference in New Issue
Block a user