From 89b306a7ffbd8f1108a4586f1fa55eed56df8a07 Mon Sep 17 00:00:00 2001 From: Nikita Mikhailov Date: Sat, 26 Sep 2015 23:58:49 +0600 Subject: [PATCH] Enable setting extended NetworkManager hooks --- nixos/modules/services/networking/networkmanager.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index adbc6099c95a..8370eca21e52 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -71,11 +71,10 @@ let ${coreutils}/bin/rm -f $tmp $tmp.ns ''; - # pre-up and pre-down hooks were added in NM 0.9.10, but we still use 0.9.0 dispatcherTypesSubdirMap = { "basic" = ""; - /*"pre-up" = "pre-up.d/"; - "pre-down" = "pre-down.d/";*/ + "pre-up" = "pre-up.d/"; + "pre-down" = "pre-down.d/"; }; in {