anchor.diff:      system.defaults.smb.NetBIOSName = cfg.hostName;
   
       system.activationScripts.networking.text = ''
  -      # Set defaults
         echo "configuring networking..." >&2
   
  -      ${hostName}
  +      ${setHostName}
  +      ${setNetworkServices}
       '';
   
     };
  
positive.code: let
    cfg = config.networking;
  
    hostName = optionalString (cfg.hostName != null) ''
      scutil --set ComputerName '${cfg.hostName}'
      scutil --set LocalHostName '${cfg.hostName}'
      scutil --set HostName '${cfg.hostName}'
    '';
  in
  
  
negative.code:       example = "myhostname";
        description = "Hostname for your machine.";
      };
  
      networking.networkservices = mkOption {
        type = types.listOf types.str;
        default = [];
        example = [ "Wi-Fi" "Ethernet Adaptor" "Thunderbolt Ethernet" ];
        description = ''
          List of networkservices that should be configured.
  
          To display a list of all the network services on the server's
          hardware ports, use <command>networksetup -listallnetworkservices</command>.
        '';
      };
  
      networking.dns = mkOption {
        type = types.listOf types.str;
        default = [];
        example = [ "8.8.8.8" "8.8.4.4" "2001:4860:4860::8888" "2001:4860:4860::8844" ];
        description = "The list of dns servers used when resolving domain names.";
      };
  
      networking.search = mkOption {
        type = types.listOf types.str;
        default = [];
        description = "The list of search paths used when resolving domain names.";
      };
    };
  
    config = {
  