2023-04-01 22:20:34 +02:00
|
|
|
let
|
2023-07-31 22:47:22 +02:00
|
|
|
inherit (import ./sources.nix) defaultPkgs overlays;
|
2023-07-28 13:02:54 +02:00
|
|
|
|
2023-07-29 18:40:46 +02:00
|
|
|
lib = import (defaultPkgs + "/lib");
|
2023-07-28 23:13:28 +02:00
|
|
|
|
2023-07-29 18:40:46 +02:00
|
|
|
mkMachine = name: _: {
|
|
|
|
_module.args = {
|
|
|
|
machineName = "${name}.c8h4.io";
|
|
|
|
my = import ./secrets/my.nix;
|
2023-05-10 21:37:05 +02:00
|
|
|
};
|
2023-07-29 18:40:46 +02:00
|
|
|
imports = [ (./machines + "/${name}.nix") ];
|
|
|
|
deployment.substituteOnDestination = true;
|
|
|
|
};
|
2023-07-28 13:02:54 +02:00
|
|
|
|
|
|
|
machines = {
|
2023-07-29 18:40:46 +02:00
|
|
|
fort = { };
|
|
|
|
name = { };
|
|
|
|
serv = { };
|
|
|
|
trek = { };
|
|
|
|
zero = { };
|
2023-05-10 21:37:05 +02:00
|
|
|
};
|
2023-04-01 22:20:34 +02:00
|
|
|
in {
|
2023-07-29 18:40:46 +02:00
|
|
|
network = {
|
|
|
|
description = "c8h4.io infrastructure";
|
|
|
|
pkgs = import defaultPkgs { inherit overlays; };
|
|
|
|
};
|
2023-07-28 13:02:54 +02:00
|
|
|
} // (lib.mapAttrs mkMachine machines)
|