mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-01-10 05:01:20 +01:00
update README
This commit is contained in:
parent
59609df547
commit
f2519d3dcd
10
README.md
10
README.md
@ -180,24 +180,22 @@ nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=./hosts/yodaTux/configuration.
|
||||
Local node (e.g. yodaTux):
|
||||
|
||||
```shell
|
||||
sudo nix-channel --update && niv update
|
||||
colmena build --on $(hostname) -v --show-trace && colmena apply-local --sudo boot
|
||||
niv update
|
||||
sudo nix-channel --update && colmena build --on $(hostname) -v --show-trace && colmena apply-local --sudo boot
|
||||
```
|
||||
|
||||
Single remote node (e.g. deploy to yodaTab):
|
||||
|
||||
```shell
|
||||
niv update
|
||||
colmena build --on remoteTab -v --show-trace && colmena apply --on remoteTab boot
|
||||
colmena exec --on remoteTab "nix-channel --update"
|
||||
i='remoteTab'; colmena build --on $i -v --show-trace && colmena apply --on $i boot && colmena exec --on $i "nix-channel --update"
|
||||
```
|
||||
|
||||
Multiple remote nodes (e.g. deploy to all nodes with tag @server):
|
||||
|
||||
```shell
|
||||
niv update
|
||||
colmena build --on @server -v --show-trace && colmena apply --on @server boot
|
||||
colmena exec --on @server "nix-channel --update"
|
||||
i='@server'; colmena build --on $i -v --show-trace && colmena apply --on $i boot && colmena exec --on $i "nix-channel --update"
|
||||
```
|
||||
|
||||
### Update
|
||||
|
Loading…
x
Reference in New Issue
Block a user