first commit

This commit is contained in:
Bart Koolen 2025-10-17 21:32:39 +02:00
commit 92c720b214
3 changed files with 45 additions and 0 deletions

29
forgejo.nix Normal file
View file

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