mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
nixos/wpa_supplicant: update config generation
Ensure wpa_supplicant.conf is also generated when userControlled and extraConfig are used. (As discussed in issue #59959)
This commit is contained in:
parent
fdbae69e8c
commit
71ea6a9a41
@ -4,7 +4,7 @@ with lib;
|
||||
|
||||
let
|
||||
cfg = config.networking.wireless;
|
||||
configFile = if cfg.networks != {} then pkgs.writeText "wpa_supplicant.conf" ''
|
||||
configFile = if cfg.networks != {} || cfg.extraConfig != "" || cfg.userControlled.enable then pkgs.writeText "wpa_supplicant.conf" ''
|
||||
${optionalString cfg.userControlled.enable ''
|
||||
ctrl_interface=DIR=/run/wpa_supplicant GROUP=${cfg.userControlled.group}
|
||||
update_config=1''}
|
||||
|
Loading…
Reference in New Issue
Block a user