update documentation for running deploy-rs

This commit is contained in:
Pim Kunis 2024-03-02 10:50:16 +01:00
parent 074383b1e2
commit f7b7009ab2
2 changed files with 3 additions and 20 deletions

View file

@ -32,8 +32,8 @@ Additionally, it deploys an age identity, which is later used for decrypting sec
### Deployment ### Deployment
To deploy all servers at once: `nix run .#deploy -- -k` To deploy all servers at once: `nix run nixpkgs#deploy-rs .# -k`
To deploy only one server: `nix run.#deploy -- -k --targets .#<host>` To deploy only one server: `nix run nixpkgs#deploy-rs -- -k --targets .#<host>`
## Known bugs ## Known bugs
@ -41,5 +41,5 @@ When deploying a new virtiofs share, the error `Failed to connect to '<name>.soc
This seems to be a bug in `microvm.nix` and I opened a bug report [here](https://github.com/astro/microvm.nix/issues/200). This seems to be a bug in `microvm.nix` and I opened a bug report [here](https://github.com/astro/microvm.nix/issues/200).
A workaround is to deploy the share without `deploy-rs`'s rollback feature enabled: A workaround is to deploy the share without `deploy-rs`'s rollback feature enabled:
``` ```
nix run .#deploy -- -k --targets .#<host> --auto-rollback false --magic-rollback false nix run nixpkgs#deploy-rs -- -k --targets .#<host> --auto-rollback false --magic-rollback false
``` ```

View file

@ -51,23 +51,6 @@
physicalMachines; physicalMachines;
in in
{ {
devShells.${controllerArch}.default = pkgs.mkShell {
packages = with pkgs; [
libsecret
# TODO: using nixos-anywhere from nixos-unstable produces buffer overflow.
# Related to this issue: https://github.com/nix-community/nixos-anywhere/issues/242
# Should wait until this is merged in nixos-unstable.
# pkgs-unstable.nixos-anywhere
pkgs-unstable.deploy-rs
openssl
postgresql_15
opentofu
cdrtools
kubectl
ansible
];
};
formatter.${controllerArch} = pkgs.nixfmt; formatter.${controllerArch} = pkgs.nixfmt;
nixosConfigurations = mkNixosSystems (name: machine: { nixosConfigurations = mkNixosSystems (name: machine: {