29 lines
824 B
Nix
29 lines
824 B
Nix
{ lib, pkgs, config, ... }: {
|
|
services.forgejo = {
|
|
enable = true;
|
|
database.type = "postgres";
|
|
stateDir = "/shared/forgejo";
|
|
# Enable support for Git Large File Storage
|
|
lfs.enable = true;
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "git.gjkoolen.com";
|
|
# You need to specify this to remove the port from URLs in the web UI.
|
|
ROOT_URL = "https://git.gjkoolen.com/";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
# You can temporarily allow registration to create an admin user.
|
|
service.DISABLE_REGISTRATION = false;
|
|
# Add support for actions, based on act: https://github.com/nektos/act
|
|
actions = {
|
|
ENABLED = true;
|
|
DEFAULT_ACTIONS_URL = "github";
|
|
};
|
|
};
|
|
};
|
|
systemd.tmpfiles.rules = [
|
|
"d /shared/forgejo 0750 forgejo forgejo -"
|
|
];
|
|
}
|
|
|
|
|