fix(kasen): networking config

This commit is contained in:
arcnmx 2024-05-10 16:24:44 -07:00
parent 06471a7b34
commit 6cfaf82535
6 changed files with 55 additions and 7 deletions

View file

@ -1,7 +1,6 @@
_: {
imports = [
];
deploy.hostname = "10.1.1.139";
# TODO: get an aarch64-linux builder on aya!
ci.enable = false;
arch = "aarch64";
@ -15,4 +14,10 @@ _: {
sshd.enable = true;
};
};
network.networks = {
local = {
macAddress = "b8:27:eb:7e:e2:41";
address4 = "10.1.1.49";
};
};
}

View file

@ -19,8 +19,6 @@ in {
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
networking.interfaces.enu1u1.useDHCP = true;
hardware.rtl-sdr.enable = true;
services.openwebrx = {
@ -42,7 +40,7 @@ in {
};
users.groups.openwebrx = {};
networking.firewall.allowedTCPPorts = [
networking.firewall.interfaces.local.allowedTCPPorts = [
8073
];
@ -53,5 +51,35 @@ in {
fsType = "ext4";
};
networking.useNetworkd = true;
systemd.network = {
networks."40-enu1u1" = {
inherit (config.systemd.network.links.enu1u1) matchConfig;
address = ["10.1.1.49/24"];
gateway = ["10.1.1.1"];
DHCP = "no";
networkConfig = {
IPv6AcceptRA = true;
};
linkConfig = {
Multicast = true;
};
};
links.enu1u1 = {
matchConfig = {
Type = "ether";
MACAddress = "b8:27:eb:7e:e2:41";
};
linkConfig = {
WakeOnLan = "magic";
};
};
};
networking.firewall.interfaces.lan = {
nftables = {
conditions = config.networking.firewall.interfaces.local.nftables.conditions;
};
};
system.stateVersion = "24.05";
}
}