mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
21 lines
613 B
Nix
21 lines
613 B
Nix
{ meta, sources, lib, ... }:
|
|
|
|
{
|
|
imports = with (import (sources.nixexprs + "/modules")).nixos; [ base16 base16-shared ] ++ [
|
|
./nftables.nix
|
|
./fw-abstraction.nix
|
|
./deploy-tf.nix
|
|
(sources.tf-nix + "/modules/nixos/secrets.nix")
|
|
(sources.tf-nix + "/modules/nixos/secrets-users.nix")
|
|
(sources.hexchen + "/modules/hexnet")
|
|
];
|
|
|
|
# stubs for hexchens modules, until more generalized
|
|
options.hexchen.dns = lib.mkOption { };
|
|
options.hexchen.deploy = lib.mkOption { };
|
|
|
|
# shim
|
|
config = {
|
|
_module.args.hosts = lib.mapAttrs (_: config: { inherit config; } ) meta.network.nodes;
|
|
};
|
|
}
|