43 lines
753 B
Nix
43 lines
753 B
Nix
{ lib, namespace, ... }:
|
|
with lib;
|
|
{
|
|
options.${namespace}.services.gitea = {
|
|
enable = mkEnableOption "gitea service";
|
|
|
|
httpPort = mkOption {
|
|
type = types.int;
|
|
default = 80;
|
|
};
|
|
|
|
sshPort = mkOption {
|
|
type = types.int;
|
|
default = 22;
|
|
};
|
|
|
|
localAddress = mkOption {
|
|
type = types.str;
|
|
default = "127.0.0.1";
|
|
};
|
|
|
|
dataDir = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
};
|
|
|
|
reverseProxy = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
host = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
};
|
|
middlewares = mkOption {
|
|
type = with types; listOf str;
|
|
default = [ ];
|
|
};
|
|
};
|
|
};
|
|
}
|