anchor.diff:    options = {
       services.influxdb2 = {
         enable = mkEnableOption "the influxdb2 server";
  +
         package = mkOption {
           default = pkgs.influxdb2-server;
           defaultText = literalExpression "pkgs.influxdb2";
           description = "influxdb2 derivation to use.";
           type = types.package;
         };
  +
         settings = mkOption {
           default = { };
           description = ''configuration options for influxdb2, see <link xlink:href="https://docs.influxdata.com/influxdb/v2.0/reference/config-options"/> for details.'';
  
positive.code: { config, lib, pkgs, ... }:
  with lib;
  let
    format = pkgs.formats.json { };
    cfg = config.services.influxdb2;
  
negative.code:         Restart = "on-failure";
        };
      };
  
      users.extraUsers.influxdb2 = {
        isSystemUser = true;
        group = "influxdb2";
      };
  
      users.extraGroups.influxdb2 = {};
    };
  
    meta.maintainers = with lib.maintainers; [ nickcao ];
  