Add jenkins
This commit is contained in:
@@ -126,6 +126,7 @@ in {
|
|||||||
###
|
###
|
||||||
dov = {
|
dov = {
|
||||||
gitlab.enable = true;
|
gitlab.enable = true;
|
||||||
|
jenkins.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# DO NOT CHANGE AT ANY POINT!
|
# DO NOT CHANGE AT ANY POINT!
|
||||||
|
|||||||
@@ -13,5 +13,6 @@
|
|||||||
./window-manager
|
./window-manager
|
||||||
./display-manager
|
./display-manager
|
||||||
./gitlab
|
./gitlab
|
||||||
|
./jenkins
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.gitlab = {
|
services.gitlab = {
|
||||||
enable = true;
|
enable = cfg.enable;
|
||||||
databasePasswordFile = config.sops.secrets."gitlab/databasePassword".path;
|
databasePasswordFile = config.sops.secrets."gitlab/databasePassword".path;
|
||||||
initialRootPasswordFile = config.sops.secrets."gitlab/initialRootPassword".path;
|
initialRootPasswordFile = config.sops.secrets."gitlab/initialRootPassword".path;
|
||||||
secrets = {
|
secrets = {
|
||||||
@@ -105,7 +105,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = cfg.enable;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
@@ -119,11 +119,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = cfg.enable;
|
||||||
allowedTCPPorts = [ 80 443 ]; # HTTP and HTTPS
|
allowedTCPPorts = [ 80 443 ]; # HTTP and HTTPS
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = cfg.enable;
|
||||||
|
|
||||||
systemd.services.gitlab-backup.environment.BACKUP = "dump";
|
systemd.services.gitlab-backup.environment.BACKUP = "dump";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.dov.jenkins;
|
||||||
|
in {
|
||||||
|
options.dov.jenkins.enable = mkEnableOption "jenkins config";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.jenkins = {
|
||||||
|
enable = cfg.enable;
|
||||||
|
port = 8081;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall = {
|
||||||
|
enable = cfg.enable;
|
||||||
|
allowedTCPPorts = [ 8081 ]; # HTTP and HTTPS
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user