mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
ead678a51f
Signed-off-by: Matt Layher <mdlayher@gmail.com>
27 lines
600 B
Nix
27 lines
600 B
Nix
# Variables referenced two or more places in the configuration.
|
|
let
|
|
# Import computed host/interface data from vars.json.
|
|
gen = builtins.fromJSON (builtins.readFile ./vars.json);
|
|
hosts = gen.hosts;
|
|
interfaces = gen.interfaces;
|
|
wireguard = gen.wireguard;
|
|
|
|
server_ipv4 = gen.server_ipv4;
|
|
server_ipv6 = gen.server_ipv6;
|
|
desktop_ipv6 = gen.desktop_ipv6;
|
|
|
|
in {
|
|
inherit hosts;
|
|
inherit interfaces;
|
|
inherit wireguard;
|
|
|
|
inherit server_ipv4;
|
|
inherit server_ipv6;
|
|
inherit desktop_ipv6;
|
|
|
|
domain = "lan.servnerr.com";
|
|
localhost = {
|
|
ipv4 = "127.0.0.1";
|
|
ipv6 = "::1";
|
|
};
|
|
}
|