updated README

This commit is contained in:
2026-11-09 18:31:37 -05:00
parent 892aa827c8
commit d8ebcad70c

View File

@@ -1,10 +1,26 @@
# My nix-darwin Configuration # My nix-darwin Configuration
This repo is meant to be a declarative setup for new macOS devices, specifically focused on the application installs. All GUI applications will be handled by homebrew and some brews or CLI tools. The more stable and maintained CLI tools are installed via nixpkgs. This repo is meant to be a declarative setup for new macOS devices, specifically focused on the application installs. All GUI applications will be handled by homebrew and some brews or CLI tools. The more stable and maintained CLI tools are installed via nixpkgs.
This config contains options for both personal user and work use. There are shared packages found in [modules/apps](./modules/apps.nix) along with "profile" specific packages in their respective directories [profiles/personal](./profiles/personal/) and [profiles/work](./profiles/work/).
## Installation ## Installation
1. Clone this repo onto the machine (probably fastest via usb) or install `git` seperatly and run `git clone https://git.briannelson.dev/brian/nix-darwin.git` 1. Have an implementation of nix installed [nixos.org](https://nixos.org/download/)
2. `cd` into the repo 2. Clone this repo onto the machine (probably fastest via usb) or install `git` seperatly and run `git clone https://git.briannelson.dev/brian/nix-darwin.git`
3. Run `./install.sh` this will run a bash script that handles all of the installation of nix, file renaming and copying the files to the correct directory. 3. Copy the repo into `/etc/nix-darwin`
```bash
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
```bash
# personal use option
sudo darwin-rebuild switch --flake ".#personal"
# work option
sudo darwin-rebuild switch --flake ".#work"
```
## Homebrew ## 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. 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.