summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-19 20:05:49 -0400
committerseth <[email protected]>2023-08-19 20:08:39 -0400
commit0039ecd602fa7daba5cf49a3ca257116aec5d3a0 (patch)
tree37cd35201bff03b0730d09b4e7daae4eaf07b1bb
parent5b90e3fa504258121026ea24287ef5f02a34cd31 (diff)
parts/deploy: use fastConnection + new mkDeployNodes
-rw-r--r--parts/deploy.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/parts/deploy.nix b/parts/deploy.nix
index b3b3766..cce2b00 100644
--- a/parts/deploy.nix
+++ b/parts/deploy.nix
@@ -1,14 +1,9 @@
-{
- self,
- lib,
- ...
-}: let
- machines = ["atlas" "p-body"];
-
- deployedSystems = lib.genAttrs machines (m: self.nixosConfigurations.${m});
+{self, ...}: let
+ targets = ["atlas" "p-body"];
in {
flake.deploy = {
remoteBuild = true;
- nodes = self.lib.utils.mkDeployNodes deployedSystems;
+ fastConnection = true;
+ nodes = self.lib.utils.mkDeployNodes targets;
};
}