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:
22
profiles/network-fallback-dhcp/default.nix
Normal file
22
profiles/network-fallback-dhcp/default.nix
Normal 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";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user