summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2019-06-10 18:30:26 +0300
committerNikolay Amiantov <ab@fmap.me>2019-06-10 20:20:46 +0300
commit5be5991c80f695e26dd97c12774bbd0e3d6e2551 (patch)
treed57ab0c5aa39f134934f52d60ad83234fbb95bb1 /nixos/modules
parent33b7e5f6c7d82c3447e4dd9aea235fca27bd5cc0 (diff)
downloadnixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar.gz
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar.bz2
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar.lz
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar.xz
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.tar.zst
nixpkgs-5be5991c80f695e26dd97c12774bbd0e3d6e2551.zip
networkmanager service: remove `with pkgs`
Avoid using `with` which isn't particularly needed.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/networkmanager.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix
index dcae09c532b..2dc3681f2b4 100644
--- a/nixos/modules/services/networking/networkmanager.nix
+++ b/nixos/modules/services/networking/networkmanager.nix
@@ -1,6 +1,5 @@
 { config, lib, pkgs, ... }:
 
-with pkgs;
 with lib;
 
 let
@@ -12,7 +11,7 @@ let
   # /var/lib/misc is for dnsmasq.leases.
   stateDirs = "/var/lib/NetworkManager /var/lib/dhclient /var/lib/misc";
 
-  configFile = writeText "NetworkManager.conf" ''
+  configFile = pkgs.writeText "NetworkManager.conf" ''
     [main]
     plugins=keyfile
     dhcp=${cfg.dhcp}
@@ -139,7 +138,8 @@ in {
       # Ugly hack for using the correct gnome3 packageSet
       basePackages = mkOption {
         type = types.attrsOf types.package;
-        default = { inherit networkmanager modemmanager wpa_supplicant
+        default = { inherit (pkgs)
+                            networkmanager modemmanager wpa_supplicant
                             networkmanager-openvpn networkmanager-vpnc
                             networkmanager-openconnect networkmanager-fortisslvpn
                             networkmanager-l2tp networkmanager-iodine; };