fix: imported in setup from hardware

This commit is contained in:
silver 2023-01-25 11:29:07 +00:00
parent a1297745d7
commit b929026302
2 changed files with 58 additions and 11 deletions

View file

@ -16,13 +16,14 @@ let
ip_pub = "193.1.99.72";
ip_priv = "172.20.20.1";
# hostname = "${name}.skynet.ie";
hostname = ip_priv;
hostname = ip_pub;
in {
imports = [
# applications for this particular server
../applications/firewall.nix
../applications/dns.nix
./hardware/agentjones.nix
];
deployment = {
@ -38,26 +39,30 @@ in {
cname = [];
};
networking.hostName = name;
# this has to be defined for any physical servers
# vms are defined by teh vm host
networking.interfaces = {
en01 = {
eno1 = {
ipv4.routes = [
{
address = "${ip_pub}";
prefixLength = 32;
# ITD skynet router
via = "193.1.99.65/32";
}
# {
# address = "193.1.99.72";
# prefixLength = 26;
# via = "193.1.99.65";
# }
];
};
en02 = {
eno2 = {
useDHCP = false;
ipv4.addresses = [
{
address = "${ip_priv}";
prefixLength = 32;
address = "193.1.99.72";
prefixLength = 26;
}
#{
# address = "172.20.20.1";
# prefixLength = 24;
#}
];
};
};