anchor.diff:          }
         ];
       };
  +
  +    systemd.tmpfiles.rules = [
  +      "Z '${cfg.stateDir}' - ${cfg.user} gitea - -"
  +    ];
   
       systemd.services.gitea = {
         description = "gitea";
  
positive.code:       };
      };
  
      users = mkIf (cfg.user == "gitea") {
        users.gitea = {
          description = "Gitea Service";
          home = cfg.stateDir;
          createHome = true;
          useDefaultShell = true;
        };
      };
  
      warnings = optional (cfg.database.password != "")
        ''config.services.gitea.database.password will be stored as plaintext
  
negative.code:       serviceConfig = {
          Type = "simple";
          User = cfg.user;
          Group = "gitea";
          WorkingDirectory = cfg.stateDir;
          PermissionsStartOnly = true;
          ExecStart = "${gitea.bin}/bin/gitea web";
  