summaryrefslogtreecommitdiff
path: root/parts/deploy.nix
blob: 3bc479596105ae60576472c6327f102c3048513a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  self,
  lib,
  ...
}: let
  inherit (builtins) elem;
  inherit (lib) filterAttrs;
  inherit (self) darwinConfigurations nixosConfigurations;

  targets = ["atlas" "p-body"];

  targets' = filterAttrs (n: _: elem n targets) (nixosConfigurations // darwinConfigurations);
in {
  flake.deploy = {
    remoteBuild = true;
    fastConnection = true;
    nodes = self.lib.utils.deploy.mkDeployNodes targets';
  };
}