This commit is contained in:
2025-04-10 17:17:20 -04:00
parent 7f1a644fcc
commit 941e972b30
5 changed files with 32 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
{ config, lib, pkgs, namespace, ... }:
let
inherit (lib) types mkIf mkDefault mkOption mkEnableOption;
inherit (lib) types mkIf mkForce mkOption mkEnableOption;
inherit (lib.${namespace}) mkBoolOpt enabled;
cfg = config.${namespace}.system.networking;
@@ -53,7 +53,7 @@ in
networking = {
firewall = enabled;
useDHCP = (cfg.useDHCP && cfg.useStatic == null);
useDHCP = mkForce (cfg.useDHCP && cfg.useStatic == null);
useNetworkd = cfg.useNetworkd;
} // (lib.optionalAttrs (cfg.enableIWD) {
wireless.iwd = {