2019-04-01 15:44:55 +02:00
|
|
|
# Deployment
|
|
|
|
|
|
|
|
Beide failen bei Activation des neuen Profils. (TODO)
|
|
|
|
|
|
|
|
## Mit `nixos-switch rebuild`
|
|
|
|
|
|
|
|
```shell
|
2019-04-07 21:35:57 +02:00
|
|
|
nixos-rebuild switch -I nixos-config=./hosts/containers/$HOST/configuration.nix --target-host "root@$HOST.hq.c3d2.de"
|
2019-04-01 15:44:55 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
## Mit NixOps
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nixops create hq.nixops -d hq
|
2019-04-02 16:44:40 +02:00
|
|
|
nixops deploy -d hq --debug --include=dhcp --force-reboot
|
|
|
|
nixops deploy -d hq --include=grafana -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz --force-reboot
|
2019-04-01 15:44:55 +02:00
|
|
|
```
|