From 75e970e330aa68f9a4293e92880591b9c210ccc2 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 27 Dec 2024 06:29:02 -0800 Subject: [PATCH] preliminary forgejo config --- modules/forgejo.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/forgejo.nix diff --git a/modules/forgejo.nix b/modules/forgejo.nix new file mode 100644 index 0000000..4977961 --- /dev/null +++ b/modules/forgejo.nix @@ -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"; + }; + }; + }; +}