2022-02-06 00:06:26 +00:00
|
|
|
{ lib, pkgsFlakes, inputs, modules }:
|
|
|
|
let
|
|
|
|
inherit (builtins) attrValues mapAttrs;
|
|
|
|
inherit (lib) mkDefault;
|
|
|
|
|
|
|
|
mkSystem = name: {
|
|
|
|
system,
|
|
|
|
nixpkgs ? "unstable",
|
|
|
|
config,
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
lib = pkgsFlakes.${nixpkgs}.lib;
|
|
|
|
in lib.nixosSystem {
|
|
|
|
inherit lib system;
|
2022-02-06 00:19:29 +00:00
|
|
|
specialArgs = { inherit inputs system; };
|
|
|
|
modules = attrValues modules ++ [ { networking.hostName = mkDefault name; } config ];
|
2022-02-06 00:06:26 +00:00
|
|
|
};
|
|
|
|
in mapAttrs mkSystem {
|
|
|
|
colony = {
|
|
|
|
system = "x86_64-linux";
|
2022-02-11 01:15:24 +00:00
|
|
|
nixpkgs = "unstable";
|
2022-02-06 00:06:26 +00:00
|
|
|
config = boxes/colony.nix;
|
|
|
|
};
|
|
|
|
}
|