mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
fix(kasen): networking config
This commit is contained in:
parent
06471a7b34
commit
6cfaf82535
6 changed files with 55 additions and 7 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue