anchor.diff:    };
   
     config = mkIf cfg.enable {
  -  
  +
       systemd.services.bosun = {
         description = "bosun metrics collector (part of Bosun)";
         wantedBy = [ "multi-user.target" ];
  
positive.code:       };
  
        opentsdbHost = mkOption {
          type = types.string;
          default = "localhost:4242";
          description = ''
            Host and port of the OpenTSDB database that stores bosun data.
          '';
        };
  
  
negative.code:   cfg = config.services.bosun;
  
    configFile = pkgs.writeText "bosun.conf" ''
      ${optionalString (cfg.opentsdbHost !=null) "tsdbHost = ${cfg.opentsdbHost}"}
      ${optionalString (cfg.influxHost !=null) "influxHost = ${cfg.influxHost}"}
      httpListen = ${cfg.listenAddress}
      stateFile = ${cfg.stateFile}
      ledisDir = ${cfg.ledisDir}
      checkFrequency = ${cfg.checkFrequency}
  
      ${cfg.extraConfig}
  