gitea setup
This commit is contained in:
parent
07cfb35e1d
commit
da56401123
28
hosts/nixos/common/optional/gitea.nix
Normal file
28
hosts/nixos/common/optional/gitea.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -12,6 +12,7 @@
|
|||
../common/optional/xdg-portal.nix
|
||||
../common/optional/hyprland.nix
|
||||
../common/optional/syncthing.nix
|
||||
../common/optional/gitea.nix
|
||||
../common/optional/xmonad
|
||||
|
||||
./hardware-configuration.nix
|
||||
|
|
Loading…
Reference in a new issue