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