mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-22 05:54:41 +01:00
43 lines
964 B
Nix
43 lines
964 B
Nix
{ 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;
|
|
#ENABLE_OPENID_SIGNUP = true;
|
|
};
|
|
federation = {
|
|
ENABLED = true;
|
|
};
|
|
#server = {
|
|
#ROOT_URL = "https://forge.katzen.cafe/";
|
|
#HTTP_PORT = 8082;
|
|
#};
|
|
service = {
|
|
REGISTER_MANUAL_CONFIRM = true;
|
|
SHOW_REGISTRATION_BUTTON = false;
|
|
};
|
|
actions = {
|
|
ENABLED = true;
|
|
};
|
|
};
|
|
};
|
|
deployment.keys = {
|
|
"forgejoDbPw" = {
|
|
keyCommand = [ "cat" "/home/jade/keys-tmp/forgejo-db-pw" ];
|
|
destDir = "/forgejo/secret/";
|
|
permissions = "0604";
|
|
};
|
|
};
|
|
}
|