diff options
author | Robin Gloster <mail@glob.in> | 2015-12-29 10:22:03 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2015-12-29 18:49:39 +0000 |
commit | 4bf7afc78ee061ecf2a9e54b202e37239d50428b (patch) | |
tree | 936a2ac603b544a6c33d03c523a7b9b16a76e11e /nixos/modules/services/networking/wpa_supplicant.nix | |
parent | 56a53ff458d470e6d2ccf1c2712af0ff594e25c4 (diff) | |
download | nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar.gz nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar.bz2 nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar.lz nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar.xz nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.tar.zst nixlib-4bf7afc78ee061ecf2a9e54b202e37239d50428b.zip |
wpa_supplicant module: remove preStart hack
If the config file is managed imperatively we shouldn't touch it.
Diffstat (limited to 'nixos/modules/services/networking/wpa_supplicant.nix')
-rw-r--r-- | nixos/modules/services/networking/wpa_supplicant.nix | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 1292ca7f08e0..397811f96266 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -106,16 +106,6 @@ in { path = [ pkgs.wpa_supplicant ]; - preStart = '' - touch -a ${configFile} - chmod 600 ${configFile} - '' + optionalString cfg.userControlled.enable '' - if [ ! -s ${configFile} ]; then - echo "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=${cfg.userControlled.group}" >> ${configFile} - echo "update_config=1" >> ${configFile} - fi - ''; - script = '' ${if ifaces == [] then '' for i in $(cd /sys/class/net && echo *); do |