22 lines
378 B
Nix
22 lines
378 B
Nix
{ config, lib, ... }:
|
|
|
|
{
|
|
options.features.homelab.gitea.enable = lib.mkEnableOption "Enable gitea";
|
|
|
|
config = lib.mkIf config.features.homelab.gitea.enable {
|
|
services.gitea = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
server = {
|
|
HTTP_PORT = 2222;
|
|
};
|
|
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|