Merge pull request #44658 from dlahoti/patch-2
add `extraConfig` section to `networking.wireless`
This commit is contained in:
commit
f167e88794
@ -8,6 +8,7 @@ let
|
|||||||
${optionalString cfg.userControlled.enable ''
|
${optionalString cfg.userControlled.enable ''
|
||||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=${cfg.userControlled.group}
|
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=${cfg.userControlled.group}
|
||||||
update_config=1''}
|
update_config=1''}
|
||||||
|
${cfg.extraConfig}
|
||||||
${concatStringsSep "\n" (mapAttrsToList (ssid: config: with config; let
|
${concatStringsSep "\n" (mapAttrsToList (ssid: config: with config; let
|
||||||
key = if psk != null
|
key = if psk != null
|
||||||
then ''"${psk}"''
|
then ''"${psk}"''
|
||||||
@ -165,6 +166,17 @@ in {
|
|||||||
description = "Members of this group can control wpa_supplicant.";
|
description = "Members of this group can control wpa_supplicant.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
extraConfig = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
p2p_disabled=1
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Extra lines appended to the configuration file.
|
||||||
|
See wpa_supplicant.conf(5) for available options.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user