Loading nixos/modules/services/networking/networkmanager.nix +14 −15 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ let configFile = pkgs.writeText "NetworkManager.conf" (lib.concatStringsSep "\n" [ (mkSection "main" { plugins = "keyfile"; dhcp = cfg.dhcp; dns = cfg.dns; inherit (cfg) dhcp dns; # If resolvconf is disabled that means that resolv.conf is managed by some other module. rc-manager = if config.networking.resolvconf.enable then "resolvconf" Loading Loading @@ -341,7 +340,6 @@ in example = literalExpression '' [ { source = pkgs.writeText "upHook" ''' if [ "$2" != "up" ]; then logger "exit: event $2 != up" exit Loading @@ -351,7 +349,8 @@ in logger "Device $DEVICE_IFACE coming up" '''; type = "basic"; } ]''; } ] ''; description = lib.mdDoc '' A list of scripts which will be executed in response to network events. ''; Loading Loading
nixos/modules/services/networking/networkmanager.nix +14 −15 Original line number Diff line number Diff line Loading @@ -30,8 +30,7 @@ let configFile = pkgs.writeText "NetworkManager.conf" (lib.concatStringsSep "\n" [ (mkSection "main" { plugins = "keyfile"; dhcp = cfg.dhcp; dns = cfg.dns; inherit (cfg) dhcp dns; # If resolvconf is disabled that means that resolv.conf is managed by some other module. rc-manager = if config.networking.resolvconf.enable then "resolvconf" Loading Loading @@ -341,7 +340,6 @@ in example = literalExpression '' [ { source = pkgs.writeText "upHook" ''' if [ "$2" != "up" ]; then logger "exit: event $2 != up" exit Loading @@ -351,7 +349,8 @@ in logger "Device $DEVICE_IFACE coming up" '''; type = "basic"; } ]''; } ] ''; description = lib.mdDoc '' A list of scripts which will be executed in response to network events. ''; Loading