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

  deployedSystems = lib.genAttrs machines (m: self.nixosConfigurations.${m});
in {
  flake.deploy = {
    remoteBuild = true;
    nodes = self.lib.utils.mkDeployNodes deployedSystems;
  };
}