summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-17 02:51:42 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-21 11:07:47 +1100
commit65ea368ebbed4fa52a1a59fcb06848c49b310c9c (patch)
tree0ec80ce72f40896cbebe2ed6ee8afd01dd3515e3 /README.md
parent9a1bea70d5728a19ee0a090dc0bcdeb73f09b7a4 (diff)
installer: move channel creation to README
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 9 insertions, 7 deletions
diff --git a/README.md b/README.md
index bfc825e..f029c9a 100644
--- a/README.md
+++ b/README.md
@@ -119,24 +119,26 @@ nix-darwin.lib.darwinSystem {
Copy the [simple](./modules/examples/simple.nix) example to `~/.config/nix-darwin/configuration.nix`.
-### Step 2. Installing `nix-darwin`
+### Step 2. Adding `nix-darwin` channel
+
+```bash
+nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
+nix-channel --update
+```
+
+### Step 3. Installing `nix-darwin`
```bash
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
```
-### Step 3. Updating `nix-darwin`
-
-The installer will configure a channel for this repository.
+### Step 4. Updating `nix-darwin`
```bash
nix-channel --update darwin
darwin-rebuild changelog
```
-
-> NOTE: If you are using Nix as a daemon service the channel for that will be owned by root.
-> Use `sudo -i nix-channel --update darwin` instead.
</details>
## Documentation