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):
|
Local node (e.g. yodaTux):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
sudo nix-channel --update && niv update
|
niv update
|
||||||
colmena build --on $(hostname) -v --show-trace && colmena apply-local --sudo boot
|
sudo nix-channel --update && colmena build --on $(hostname) -v --show-trace && colmena apply-local --sudo boot
|
||||||
```
|
```
|
||||||
|
|
||||||
Single remote node (e.g. deploy to yodaTab):
|
Single remote node (e.g. deploy to yodaTab):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
niv update
|
niv update
|
||||||
colmena build --on remoteTab -v --show-trace && colmena apply --on remoteTab boot
|
i='remoteTab'; colmena build --on $i -v --show-trace && colmena apply --on $i boot && colmena exec --on $i "nix-channel --update"
|
||||||
colmena exec --on remoteTab "nix-channel --update"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Multiple remote nodes (e.g. deploy to all nodes with tag @server):
|
Multiple remote nodes (e.g. deploy to all nodes with tag @server):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
niv update
|
niv update
|
||||||
colmena build --on @server -v --show-trace && colmena apply --on @server boot
|
i='@server'; colmena build --on $i -v --show-trace && colmena apply --on $i boot && colmena exec --on $i "nix-channel --update"
|
||||||
colmena exec --on @server "nix-channel --update"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Update
|
### Update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user