34 lines
962 B
Nix
34 lines
962 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
options.sysconfig.opts.virtualization.gitlab.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.virtualization.gitlab.enable {
|
|
|
|
virtualisation.containers.gitlab = {
|
|
|
|
autoStart = true;
|
|
privateNetwork = true;
|
|
hostAddress = "192.168.100.10";
|
|
localAddress = "192.168.100.11";
|
|
config = {
|
|
|
|
services.gitlab = {
|
|
enable = true;
|
|
#https = true;
|
|
#port = 443;
|
|
#host = "localhost";
|
|
databasePasswordFile = pkgs.writeText "dbPassword" "hellothere!";
|
|
initialRootPasswordFile = pkgs.writeText "rootPassword" "generalkenobi";
|
|
|
|
secrets = {
|
|
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|