1
0

hosts/astatine,hosts/beryllium,hosts/tungsten: Migrate to

systemd-networkd

Policy routing clashed with the fallback dhcp on any interface module
for some unknown reason, therefore wg-clerie is disabled on all of these
devices
This commit is contained in:
2025-03-19 20:07:37 +01:00
parent 3efc575902
commit 006877c4ae
5 changed files with 79 additions and 41 deletions

View File

@@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
{
options.profiles.clerie.network-fallback-dhcp = {
enable = mkEnableOption "Profile for systemd-network falling back to DHCP on all interfaces";
};
config = mkIf config.profiles.clerie.network-fallback-dhcp.enable {
systemd.network.wait-online.anyInterface = true;
systemd.network.networks."90-lan-dhcp" = {
matchConfig.Type = "ether";
networkConfig.DHCP = true;
linkConfig.RequiredForOnline = "routable";
};
};
}