nixos-config/default.nix

28 lines
590 B
Nix
Raw Normal View History

let
inherit (import ./sources.nix) defaultPkgs overlays;
lib = import (defaultPkgs + "/lib");
mkMachine = name: _: {
_module.args = {
machineName = "${name}.c8h4.io";
my = import ./secrets/my.nix;
};
imports = [ (./machines + "/${name}.nix") ];
deployment.substituteOnDestination = true;
};
machines = {
fort = { };
name = { };
serv = { };
trek = { };
zero = { };
};
in {
network = {
description = "c8h4.io infrastructure";
pkgs = import defaultPkgs { inherit overlays; };
};
} // (lib.mapAttrs mkMachine machines)