summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2015-12-29 10:22:03 +0000
committerRobin Gloster <mail@glob.in>2016-01-06 03:58:39 +0000
commit609457458e24b619b45a18666738b704077f434b (patch)
tree8150aea259990f1e6bf4818f3270cb184f6b10c4 /nixos
parentd03b35f881941f57d5159ae0a58b10f7c3142682 (diff)
downloadnixpkgs-609457458e24b619b45a18666738b704077f434b.tar
nixpkgs-609457458e24b619b45a18666738b704077f434b.tar.gz
nixpkgs-609457458e24b619b45a18666738b704077f434b.tar.bz2
nixpkgs-609457458e24b619b45a18666738b704077f434b.tar.lz
nixpkgs-609457458e24b619b45a18666738b704077f434b.tar.xz
nixpkgs-609457458e24b619b45a18666738b704077f434b.tar.zst
nixpkgs-609457458e24b619b45a18666738b704077f434b.zip
wpa_supplicant module: remove preStart hack
If the config file is managed imperatively we shouldn't touch it.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/wpa_supplicant.nix10
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 1292ca7f08e..397811f9626 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