started container config
This commit is contained in:
7
system-config/services/containers/default.nix
Normal file
7
system-config/services/containers/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }: {
|
||||
|
||||
imports = [
|
||||
./gitlab
|
||||
./traefik
|
||||
];
|
||||
}
|
||||
33
system-config/services/containers/gitlab/default.nix
Normal file
33
system-config/services/containers/gitlab/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ 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 = {
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
26
system-config/services/containers/traefik/default.nix
Normal file
26
system-config/services/containers/traefik/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.opts.virtualization.traefik.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.traefik.enable {
|
||||
|
||||
services.traefik = {
|
||||
|
||||
enable = true;
|
||||
|
||||
staticConfigOpts = {
|
||||
entryPoints = {
|
||||
web = {};
|
||||
websecure = {};
|
||||
log = {};
|
||||
certificatesResolvers
|
||||
};
|
||||
};
|
||||
|
||||
dynamicConfigOpts = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,5 +4,6 @@
|
||||
./ollama
|
||||
./openssh
|
||||
./pipewire
|
||||
# ./containers
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user