README: reorder ## Mit Flakes

This commit is contained in:
Astro 2021-03-28 21:10:52 +02:00
parent d04f56f4c1
commit f2fc6a1762
1 changed files with 10 additions and 7 deletions

View File

@ -32,19 +32,22 @@ nix registry add c3d2 git+https://gitea.c3d2.de/C3D2/nix-config
Beide failen bei Activation des neuen Profils. (TODO)
## Mit flakes
### Remote deployment
Use `nix run` with one of the deploy scripts exported by the flake,
for example: `nix run c3d2#glotzbert-nixos-rebuild switch`. Use `nix flake show c3d2`
to show what is available. Note that the deploy scripts only work if
the target machines already has flakes enabled.
## Mit Flakes
### Local deployment
Running `nixos-rebuild --flake c3d2 switch` on a machine should be sufficient
to update that machine to the current configuration and Nixpkgs revision.
### Remote deployment
Use `nix run` with one of the deploy scripts exported by the flake,
for example: `nix run c3d2#glotzbert-nixos-rebuild switch`. Use `nix flake show c3d2`
to show what is available. Note that the deploy scripts only work if
the target machines already has flakes enabled.
## Mit NixOps
The official way for deployment is through `deployer.serv.zentralwerk.org`