dotfiles/nix/modules/nixos/features/homelab/gitea.nix

24 lines
381 B
Nix
Raw Normal View History

2024-11-26 08:40:00 +00:00
{ config, lib, ... }:
2024-12-10 21:40:33 +00:00
with lib;
2024-11-26 08:40:00 +00:00
{
2024-12-10 21:40:33 +00:00
options.features.homelab.gitea.enable = mkEnableOption "Enable gitea";
2024-11-26 08:40:00 +00:00
2024-12-10 21:40:33 +00:00
config = mkIf config.features.homelab.gitea.enable {
2024-11-26 08:40:00 +00:00
services.gitea = {
enable = true;
settings = {
server = {
HTTP_PORT = 2222;
};
service = {
DISABLE_REGISTRATION = true;
};
};
};
};
}