From f7b7009ab2b49d15d30548afc725a758f8b5b174 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 2 Mar 2024 10:50:16 +0100 Subject: [PATCH] update documentation for running deploy-rs --- README.md | 6 +++--- flake.nix | 17 ----------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 369cfca..06fb7f8 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ Additionally, it deploys an age identity, which is later used for decrypting sec ### Deployment -To deploy all servers at once: `nix run .#deploy -- -k` -To deploy only one server: `nix run.#deploy -- -k --targets .#` +To deploy all servers at once: `nix run nixpkgs#deploy-rs .# -k` +To deploy only one server: `nix run nixpkgs#deploy-rs -- -k --targets .#` ## Known bugs @@ -41,5 +41,5 @@ When deploying a new virtiofs share, the error `Failed to connect to '.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). A workaround is to deploy the share without `deploy-rs`'s rollback feature enabled: ``` -nix run .#deploy -- -k --targets .# --auto-rollback false --magic-rollback false +nix run nixpkgs#deploy-rs -- -k --targets .# --auto-rollback false --magic-rollback false ``` diff --git a/flake.nix b/flake.nix index 94185ef..58bf968 100644 --- a/flake.nix +++ b/flake.nix @@ -51,23 +51,6 @@ physicalMachines; 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; nixosConfigurations = mkNixosSystems (name: machine: {