2022-12-20 03:47:27 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
2022-12-20 03:48:38 +01:00
|
|
|
# https://github.com/NixOS/nixpkgs/pull/206965
|
2022-12-20 03:47:27 +01:00
|
|
|
concatMapAttrsRecursive = with lib; f: flip pipe [ (mapAttrs f) attrValues (foldl' recursiveUpdate { }) ];
|
|
|
|
in
|
2021-11-13 01:23:23 +01:00
|
|
|
{
|
|
|
|
imports = [
|
2021-11-13 01:44:14 +01:00
|
|
|
# Secrets
|
2021-11-13 01:23:23 +01:00
|
|
|
./secrets.nix
|
|
|
|
|
2021-11-13 01:44:14 +01:00
|
|
|
# Hardware
|
2021-11-13 01:23:23 +01:00
|
|
|
./vlan.nix
|
2021-11-13 01:44:14 +01:00
|
|
|
./switch.nix
|
|
|
|
./ap.nix
|
|
|
|
./server.nix
|
2022-12-20 03:47:27 +01:00
|
|
|
]
|
2021-11-15 21:24:44 +01:00
|
|
|
# IP networks
|
2022-12-20 03:47:27 +01:00
|
|
|
++ lib.filesystem.listFilesRecursive ./net;
|
|
|
|
|
|
|
|
site.net-combined = concatMapAttrsRecursive (name: value: { inherit (value) hosts4 hosts6; }) config.site.net;
|
2023-01-20 20:04:52 +01:00
|
|
|
|
|
|
|
site.bgp.asn = 4242421127;
|
2021-11-13 01:23:23 +01:00
|
|
|
}
|