mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-04-27 23:35:05 +02:00
31 lines
601 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|