1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

NetworkManager: fix dnsmasq interaction for ad-hoc networks

Fixes #7593 (NM can't find the dnsmasq binary); the NM expression is missing
dnsmasq in its buildInputs, so configure can't find it.

Also creates /var/lib/misc which dnsmasq expects to exist, because it puts
dnsmasq.leases there.
This commit is contained in:
Bryan Gardiner 2015-08-26 12:17:08 -07:00
parent d4f7bf9c29
commit f4de446573
No known key found for this signature in database
GPG key ID: 53EFBCA063E6183C
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,8 @@ with lib;
let
cfg = config.networking.networkmanager;
stateDirs = "/var/lib/NetworkManager /var/lib/dhclient";
# /var/lib/misc is for dnsmasq.leases.
stateDirs = "/var/lib/NetworkManager /var/lib/dhclient /var/lib/misc";
configFile = writeText "NetworkManager.conf" ''
[main]

View file

@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
];
buildInputs = [ wirelesstools udev libnl libuuid polkit ppp libndp
xz bluez5 gobjectIntrospection modemmanager readline newt libsoup ];
xz bluez5 dnsmasq gobjectIntrospection modemmanager readline newt libsoup ];
propagatedBuildInputs = [ dbus_glib gnutls libgcrypt ];