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

0
README.md Normal file
View file

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 -"
];
}

16
temp Normal file
View file

@ -0,0 +1,16 @@
ctid="162"
ctname="forgejo"
ctt="local:vztmpl/nixos-image-lxc-proxmox-25.05pre-git-x86_64-linux.tar.xz"
cts="local-lvm"
pct create ${ctid} ${ctt} \
--hostname=${ctname} \
--ostype=nixos --unprivileged=0 --features nesting=1 \
--net0 name=eth0,bridge=vmbr0,ip=dhcp \
--arch=amd64 --swap=1024 --memory=2048 \
--storage=${cts}
mp0: /mnt/pve/Storage1/forgejo,mp=/shared