From 4bf7afc78ee061ecf2a9e54b202e37239d50428b Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 29 Dec 2015 10:22:03 +0000 Subject: wpa_supplicant module: remove preStart hack If the config file is managed imperatively we shouldn't touch it. --- nixos/modules/services/networking/wpa_supplicant.nix | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'nixos/modules/services/networking/wpa_supplicant.nix') 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 -- cgit 1.4.1