anchor.diff:      transport_file_type: hash
     '';
   
  -  mailmanCfg = ''
  -    [mailman]
  -    site_owner: ${cfg.siteOwner}
  -    layout: fhs
  -
  -    [paths.fhs]
  -    bin_dir: ${pkgs.python3Packages.mailman}/bin
  -    var_dir: /var/lib/mailman
  -    queue_dir: $var_dir/queue
  -    template_dir: $var_dir/templates
  -    log_dir: /var/log/mailman
  -    lock_dir: $var_dir/lock
  -    etc_dir: /etc
  -    ext_dir: $etc_dir/mailman.d
  -    pid_file: /run/mailman/master.pid
  -
  -    [mta]
  -    configuration: ${mtaConfig}
  -  '' + optionalString cfg.hyperkitty.enable ''
  -
  -    [archiver.hyperkitty]
  -    class: mailman_hyperkitty.Archiver
  -    enable: yes
  -    configuration: /var/lib/mailman/mailman-hyperkitty.cfg
  -  '';
  +  mailmanCfg = lib.generators.toINI {} cfg.settings;
   
     mailmanHyperkittyCfg = pkgs.writeText "mailman-hyperkitty.cfg" ''
       [general]
  
positive.code:     };
    } // cfg.webSettings;
  
    settingsJSON = pkgs.writeText "settings.json" (builtins.toJSON settings);
  
    # TODO: Should this be RFC42-ised so that users can set additional options without modifying the module?
    mtaConfig = pkgs.writeText "mailman-postfix.cfg" ''
  
negative.code:   ###### implementation
  
    config = mkIf cfg.enable {
  
      services.mailman.settings = {
        mailman.site_owner = lib.mkDefault cfg.siteOwner;
        mailman.layout = "fhs";
  
        "paths.fhs" = {
          bin_dir = "${pkgs.python3Packages.mailman}/bin";
          var_dir = "/var/lib/mailman";
          queue_dir = "$var_dir/queue";
          template_dir = "$var_dir/templates";
          log_dir = "/var/log/mailman";
          lock_dir = "$var_dir/lock";
          etc_dir = "/etc";
          ext_dir = "$etc_dir/mailman.d";
          pid_file = "/run/mailman/master.pid";
        };
  
        mta.configuration = lib.mkDefault "${mtaConfig}";
  
        "archiver.hyperkitty" = lib.mkIf cfg.hyperkitty.enable {
          class = "mailman_hyperkitty.Archiver";
          enable = "yes";
          configuration = "/var/lib/mailman/mailman-hyperkitty.cfg";
        };
      };
  
      assertions = let
        inherit (config.services) postfix;
  