Unverified Commit ad0ca163 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by Maciej Krüger
Browse files

nixos/networkmanager: cleanup, fix example rendering

parent dd7ea909
Loading
Loading
Loading
Loading
+14 −15
Original line number Diff line number Diff line
@@ -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"
@@ -341,7 +340,6 @@ in
        example = literalExpression ''
          [ {
            source = pkgs.writeText "upHook" '''

              if [ "$2" != "up" ]; then
                logger "exit: event $2 != up"
                exit
@@ -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.
        '';