Disable predictable interface names on hcloud

This commit is contained in:
Paul-Henri Froidmont 2022-10-30 01:17:34 +02:00
parent 5b59140a29
commit a4e1399331
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
3 changed files with 4 additions and 3 deletions

View file

@ -91,7 +91,7 @@
};
};
networking.interfaces.enp1s0 = {
networking.interfaces.eth1 = {
useDHCP = true;
ipv4 = {
addresses = [
@ -105,6 +105,6 @@
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
networking.firewall.allowedUDPPorts = [ 64738 ];
networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
networking.firewall.interfaces."eth2".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
}

View file

@ -8,7 +8,7 @@
../modules/monitoring-exporters.nix
];
networking.firewall.interfaces."enp7s0".allowedTCPPorts = [ config.services.prometheus.exporters.node.port config.services.postgresql.port ];
networking.firewall.interfaces."eth2".allowedTCPPorts = [ config.services.prometheus.exporters.node.port config.services.postgresql.port ];
sops.secrets = {
borgSshKey = {