matemat: move from c3d2 to serv

fixes gitea issue #9
This commit is contained in:
Astro 2021-10-06 21:56:36 +02:00
parent 4f20008ec9
commit 883222a750
2 changed files with 10 additions and 7 deletions

View File

@ -76,8 +76,6 @@ rec {
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMFbxHGfBMBjjior1FNRub56O62K++HVnqUH67BeKD7d";
};
matemat = {
ip4 = "172.22.99.133";
ip6 = "2a00:8180:2c00:223:f82b:1bff:fedc:8572";
publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBa07c4NnU1TGX1SMNea9e1d4nMtc0OS4gJLmTA3g/fe";
};

View File

@ -1,14 +1,19 @@
{ lib, pkgs, ... }:
{ hostRegistry, lib, pkgs, ... }:
{
c3d2 = {
isInHq = true;
hq.interface = "eth0";
};
networking = {
hostName = "matemat";
interfaces.eth0.useDHCP = lib.mkForce true;
firewall.allowedTCPPorts = [ 80 443 ];
networking.hostName = "matemat";
networking.useNetworkd = true;
networking.interfaces.eth0 = {
ipv4.addresses = [{
address = hostRegistry.hosts.matemat.ip4;
prefixLength = 26;
}];
};
networking.defaultGateway = "172.20.73.1";
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.yammat.enable = true;