commit 92c720b214957768682aec3265c3544640b52213 Author: Bart Date: Fri Oct 17 21:32:39 2025 +0200 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/forgejo.nix b/forgejo.nix new file mode 100644 index 0000000..f1bbe24 --- /dev/null +++ b/forgejo.nix @@ -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 -" + ]; +} + + diff --git a/temp b/temp new file mode 100644 index 0000000..5338f7b --- /dev/null +++ b/temp @@ -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 +