Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit f0dbfb6

Browse files
committed
Add README
1 parent 5f1500f commit f0dbfb6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Nix configuration for a bunch of machines
2+
3+
## Deploying
4+
5+
First: Clone the repo
6+
7+
### Darwin
8+
9+
``` console
10+
$ cd <repo clone root>
11+
$ nix build ~/.config/darwin\#darwinConfigurations.cipher-4590
12+
$ ./result/sw/bin/darwin-rebuild switch --flake .
13+
```
14+
15+
After completing the above,
16+
`darwin-rebuild` will be in `$PATH`,
17+
so a simple `darwin-rebuild switch --flake <path>` will work fine.o
18+
19+
### NixOS
20+
21+
```console
22+
$ nixos-rebuild switch --flake <repo clone root>
23+
```
24+
25+
will work
26+
(if your hostname happens to be `bennett-{server,laptop}`).

0 commit comments

Comments
 (0)