nixos/networkd: lib.mapAttrsToList -> lib.attrNames

This commit is contained in:
h7x4
2025-10-26 15:33:33 +09:00
parent 266c8f0a4f
commit ddb37e12c2
@@ -347,7 +347,7 @@ in
driverOpt:
assertTrace (elem driverOpt (knownOptions ++ unknownOptions))
"The bond.driverOption `${driverOpt}` cannot be mapped to the list of known networkd bond options. Please add it to the mapping above the assert or to `unknownOptions` should it not exist in networkd."
) (mapAttrsToList (k: _: k) do);
) (attrNames do);
"";
# get those driverOptions that have been set
filterSystemdOptions = filterAttrs (sysDOpt: kOpts: any (kOpt: do ? ${kOpt}) kOpts.optNames);