1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-27 23:35:05 +02:00
git.oat.zone--dark-firepit-.../modules/services/gitea.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

31 lines
601 B
Nix

{ config, lib, pkgs, options, ... }:
with lib;
let
cfg = config.modules.services.gitea;
in {
options.modules.services.gitea = {
enable = mkOption {
type = types.bool;
default = false;
};
site = mkOption {
type = types.str;
default = "git.oat.zone";
};
};
config = mkIf cfg.enable {
modules.services.postgres.enable = true;
services.gitea = {
enable = true;
domain = cfg.site;
rootUrl = "https://${cfg.site}/";
appName = "Gitea: Fire Pit hosted Git";
database = {
type = "postgres";
};
};
};
}