katzen-cafe/modules/forgejo.nix

40 lines
913 B
Nix
Raw Normal View History

2023-05-03 12:38:40 +00:00
{ pkgs, pkgsUnstable, ... }:
{
services.gitea = {
enable = true;
package = pkgsUnstable.forgejo;
repositoryRoot = "/forgejo/repos";
appName = "Katzenschmiede";
rootUrl = "https://forge.katzen.cafe/";
httpPort = 8082;
domain = "forge.katzen.cafe";
database = {
type = "postgres";
};
settings = {
openid = {
ENABLE_OPENID_SIGNIN = true;
2023-05-03 19:32:39 +00:00
#ENABLE_OPENID_SIGNUP = true;
};
federation = {
ENABLED = true;
2023-05-03 12:38:40 +00:00
};
#server = {
#ROOT_URL = "https://forge.katzen.cafe/";
#HTTP_PORT = 8082;
#};
2023-05-03 19:32:39 +00:00
service = {
REGISTER_MANUAL_CONFIRM = true;
SHOW_REGISTRATION_BUTTON = false;
};
2023-05-03 12:38:40 +00:00
};
};
deployment.keys = {
"forgejoDbPw" = {
keyCommand = [ "cat" "/home/jade/keys-tmp/forgejo-db-pw" ];
destDir = "/forgejo/secret/";
permissions = "0604";
};
};
}