summaryrefslogtreecommitdiff
path: root/parts/deploy.nix
blob: 9bd98b256d68d6ec1573f1b910097746c98524da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  self,
  lib,
  ...
}: let
  systems = ["atlas" "p-body"];

  deployedSystems =
    lib.filterAttrs
    (n: _: builtins.elem n systems)
    self.nixosConfigurations;
in {
  flake.deploy = {
    remoteBuild = true;
    nodes = self.lib.utils.mkDeployNodes deployedSystems;
  };
}