This commit is contained in:
Lucy Hochkamp 2025-09-17 09:02:08 +02:00
parent e986986e79
commit 53c7532351
No known key found for this signature in database
10 changed files with 131 additions and 107 deletions

View file

@ -18,6 +18,25 @@ in
useDHCP = true;
useHostResolvConf = false;
};
systemd.network.networks."60-wifi-client" = {
matchConfig = {
WLANInterfaceType = "station";
};
networkConfig = {
DHCP = "yes";
IgnoreCarrierLoss = "3s";
IPv6PrivacyExtensions = "kernel";
};
dhcpV4Config = {
RouteMetric = 1025;
# IPv6OnlyMode = "yes";
};
ipv6AcceptRAConfig = {
# UsePREF64 = true;
RouteMetric = 1025;
};
};
# systemd.network.networks."60-wifi-client" = {
# matchConfig = {
# WLANInterfaceType = "station";
@ -57,6 +76,12 @@ in
# # ipv6AcceptRAConfig.UsePREF64 = true;
# };
networking.wireless.iwd.enable = cfg.enableWifi;
networking.wireless.iwd.settings = {
General = {
AddressRandomization = "network";
AddressRandomizationRange = "full";
};
};
xyno.impermanence.directories = lib.optionals cfg.enableWifi [ "/var/lib/iwd" ];
# services.clatd.enable = true;
};