Add forgejo

This commit is contained in:
muon 2025-01-17 20:52:41 +00:00
parent 49e796631b
commit 10dc2af1a2
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
mods.server.nginx.ports = {
photos = 3001;
homebox = 3002;
git = 3003;
search = 8081;
videos = 8082;

View file

@ -0,0 +1,16 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.git;
port = config.mods.server.nginx.ports.git;
in with lib; {
options.mods.server = {
git = {
enable = mkEnableOption {
default = false;
description = "enables forgejo server";
};
};
};
config = mkIf cfg.enable { services.forgejo = { enable = true; }; };
}