feat(dns01): use infra-wide network config (#6)
Reviewed-on: #6 Co-authored-by: Constantin Gierczak--Galle <git.cst1@mailbox.org> Co-committed-by: Constantin Gierczak--Galle <git.cst1@mailbox.org>
This commit is contained in:
parent
225ced72c2
commit
9b5c6848c0
2 changed files with 15 additions and 26 deletions
|
@ -10,30 +10,7 @@ lib.extra.mkConfig {
|
||||||
"nsd"
|
"nsd"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = { };
|
||||||
users.users.root.openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
|
|
||||||
];
|
|
||||||
systemd.network = {
|
|
||||||
config.routeTables = {
|
|
||||||
he = 100;
|
|
||||||
mwan = 110;
|
|
||||||
};
|
|
||||||
networks = {
|
|
||||||
"10-ens18" = {
|
|
||||||
name = "ens18";
|
|
||||||
|
|
||||||
networkConfig = {
|
|
||||||
Description = "ENS uplink";
|
|
||||||
Address = [ "129.199.146.102/24" ];
|
|
||||||
Gateway = "129.199.146.254";
|
|
||||||
LLDP = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
root = ./.;
|
root = ./.;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,20 @@
|
||||||
{
|
{
|
||||||
dns01 = {
|
dns01 = {
|
||||||
interfaces = { };
|
interfaces = {
|
||||||
|
ens18 = {
|
||||||
|
ipv4 = [
|
||||||
|
{
|
||||||
|
address = "129.199.146.102";
|
||||||
|
prefixLength = 24;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
addresses.ipv4 = [ "129.199.146.102" ];
|
gateways = [ "129.199.146.254" ];
|
||||||
|
enableDefaultDNS = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#addresses.ipv4 = [ "129.199.146.102" ];
|
||||||
|
|
||||||
hostId = "1758233d";
|
hostId = "1758233d";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue