From cbe75701cca212cc7784016e8ee9be69c3e5943f Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 26 Feb 2025 02:40:17 +0300 Subject: [PATCH] add deploy-rs --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index f9ce3d8..cff0620 100644 --- a/flake.nix +++ b/flake.nix @@ -51,6 +51,7 @@ self, nixpkgs, nix-on-droid, + deploy-rs, ... } @ inputs: let inherit (self) outputs; @@ -91,5 +92,15 @@ formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.alejandra; formatter.aarch64-linux = nixpkgs.legacyPackages.aarch64-linux.alejandra; + deploy = { + user = "root"; + nodes = { + zero2w = { + hostname = "harmonica"; + profiles.system.path = + deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.zero2w; + }; + }; + }; }; }