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:         description = lib.mdDoc "Path to a file containing the SMTP password.";
        };
  
        disableRegistration = mkEnableOption "the registration lock" // {
          description = ''
            By default any user can create an account on this <literal>gitea</literal> instance.
            This can be disabled by using this option.
  
            <emphasis>Note:</emphasis> please keep in mind that this should be added after the initial
            deploy unless <link linkend="opt-services.gitea.useWizard">services.gitea.useWizard</link>
            is <literal>true</literal> as the first registered user will be the administrator if
            no install wizard is used.
          '';
        };
  
        settings = mkOption {
          type = with types; attrsOf (attrsOf (oneOf [ bool int str ]));
          default = {};
          description = lib.mdDoc ''
            Gitea configuration. Refer to <https://docs.gitea.io/en-us/config-cheat-sheet/>
  
negative.code:         default = "/var/lib/gitea";
          type = types.str;
          description = lib.mdDoc "gitea data directory.";
        };
  
        user = mkOption {
  