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:
parent
d4f7bf9c29
commit
f4de446573
|
@ -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]
|
||||
|
|
|
@ -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 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue