anchor.diff:    useMysql = cfg.database.type == "mysql";
     usePostgresql = cfg.database.type == "postgres";
     useSqlite = cfg.database.type == "sqlite3";
  +  format = pkgs.formats.ini { };
     configFile = pkgs.writeText "app.ini" ''
       APP_NAME = ${cfg.appName}
       RUN_USER = ${cfg.user}
  
positive.code:       ];
  
        session = {
          COOKIE_NAME = "session";
          COOKIE_SECURE = cfg.cookieSecure;
        };
  
        security = {
          SECRET_KEY = "#secretkey#";
          INTERNAL_TOKEN = "#internaltoken#";
          INSTALL_LOCK = true;
        };
  
        log = {
          ROOT_PATH = cfg.log.rootPath;
          LEVEL = cfg.log.level;
        };
  
        service = {
          DISABLE_REGISTRATION = cfg.disableRegistration;
        };
  
        mailer = mkIf (cfg.mailerPasswordFile != null) {
  
negative.code: in
  
  {
    imports = [
      (mkRenamedOptionModule [ "services" "gitea" "cookieSecure" ] [ "services" "gitea" "settings" "session" "COOKIE_SECURE" ])
      (mkRenamedOptionModule [ "services" "gitea" "disableRegistration" ] [ "services" "gitea" "settings" "service" "DISABLE_REGISTRATION" ])
      (mkRenamedOptionModule [ "services" "gitea" "log" "level" ] [ "services" "gitea" "settings" "log" "LEVEL" ])
      (mkRenamedOptionModule [ "services" "gitea" "log" "rootPath" ] [ "services" "gitea" "settings" "log" "ROOT_PATH" ])
      (mkRenamedOptionModule [ "services" "gitea" "ssh" "clonePort" ] [ "services" "gitea" "settings" "server" "SSH_PORT" ])
  
      (mkRemovedOptionModule [ "services" "gitea" "ssh" "enable" ] "services.gitea.ssh.enable has been migrated into freeform setting services.gitea.settings.server.DISABLE_SSH. Keep in mind that the setting is inverted")
    ];
  
    options = {
      services.gitea = {
        enable = mkOption {
  