1
Fork 0
satellite/hosts/nixos/common/optional/services/gitea.nix

29 lines
677 B
Nix
Raw Normal View History

2023-07-07 22:42:13 +02:00
{ lib, ... }: {
services.gitea = {
enable = true;
appName = "pinktea";
stateDir = "/persist/state/pinktea";
lfs.enable = true;
dump = {
enable = true;
type = "tar.gz";
};
# See [the cheatsheet](https://docs.gitea.com/next/administration/config-cheat-sheet)
settings = {
session.COOKIE_SECURE = false; # TODO: set to true when serving over https
repository = {
DISABLED_REPO_UNITS = "";
DEFAULT_REPO_UNITS = lib.strings.concatStringsSep "," [
"repo.code"
"repo.releases"
"repo.issues"
"repo.pulls"
];
DISABLE_STARS = true;
};
};
};
}