preliminary forgejo config

This commit is contained in:
Zynh Ludwig 2024-12-27 06:29:02 -08:00
parent 2ef0974bde
commit 75e970e330

21
modules/forgejo.nix Normal file
View file

@ -0,0 +1,21 @@
{ lib, config, ... }:
let
cfg = config.permafrost.nyazoom;
in
{
options.permafrost.nyazoom = {
enable = lib.mkEnableOption "permafrost nixos module";
};
config = lib.mkIf cfg.enable {
permafrost.nginx.enable = lib.mkDefault true;
services.nginx.virtualHosts."git.zynh.me" = {
addSSL = true;
serverName = "git.zynh.me";
locations."/" = {
proxyPass = "http://localhost:3032";
};
};
};
}