fruitbasket/hosts/quitte/network.nix

48 lines
1 KiB
Nix
Raw Normal View History

2024-02-03 20:02:15 +01:00
{ config, lib, ... }:
2022-12-09 16:18:57 +01:00
{
networking = {
2024-02-03 20:02:15 +01:00
# portunus module does weird things to this, so we force it to some sane values
2024-07-05 14:18:30 +02:00
# hosts = {
# "127.0.0.1" = lib.mkForce [ "quitte.ifsr.de" "quitte" ];
# "::1" = lib.mkForce [ "quitte.ifsr.de" "quitte" ];
# };
2022-12-09 16:18:57 +01:00
hostId = "a71c81fc";
domain = "ifsr.de";
hostName = "quitte";
rDNS = config.networking.fqdn;
2022-12-09 16:18:57 +01:00
useNetworkd = true;
2023-10-23 11:59:12 +02:00
nftables.enable = true;
2022-12-09 16:18:57 +01:00
firewall = {
logRefusedConnections = false;
};
2022-12-09 16:18:57 +01:00
};
services.resolved = {
enable = true;
2024-03-21 15:47:32 +01:00
fallbackDns = [ "9.9.9.9" ];
2022-12-09 16:18:57 +01:00
};
systemd.network = {
enable = true;
2024-03-21 15:47:32 +01:00
wait-online.anyInterface = true;
2022-12-09 16:18:57 +01:00
# Interfaces on the machine
2024-01-29 16:23:56 +01:00
networks."10-wired-default" = {
matchConfig.Name = "enp65s0f0np0";
2023-02-15 13:34:14 +01:00
address = [ "141.30.30.169/25" ];
routes = [
2023-02-15 13:35:32 +01:00
{
routeConfig.Gateway = "141.30.30.129";
}
2023-02-15 13:34:14 +01:00
];
2022-12-09 16:18:57 +01:00
networkConfig = {
DNS = "141.30.1.1";
2024-03-28 23:49:49 +01:00
LLDP = true;
EmitLLDP = "nearest-bridge";
2022-12-09 16:18:57 +01:00
};
};
};
}