1
Fork 0

gitea setup

This commit is contained in:
Matei Adriel 2023-07-07 22:42:13 +02:00
parent 07cfb35e1d
commit da56401123
No known key found for this signature in database
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ 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;
};
};
};
}

View file

@ -12,6 +12,7 @@
../common/optional/xdg-portal.nix ../common/optional/xdg-portal.nix
../common/optional/hyprland.nix ../common/optional/hyprland.nix
../common/optional/syncthing.nix ../common/optional/syncthing.nix
../common/optional/gitea.nix
../common/optional/xmonad ../common/optional/xmonad
./hardware-configuration.nix ./hardware-configuration.nix