
* keep ./services for instances ./profiles is for config-only modules ./services are like profiles, but configure a single instance of a service. Those are fronted by Nginx as the load-balancer and have a DNS entry as well. * ci: build build03 as well * move hydra to services * move matterbridge to services * move marvin-mk2 to services * build01: share the remainder profiles * build02: use the nix-community-cache * fixup kexec * rename profiles to roles * README: sync with reality
19 lines
671 B
Nix
19 lines
671 B
Nix
{ pkgs, ... }:
|
|
let
|
|
gitlabModule = builtins.fetchTarball {
|
|
url = "https://gitlab.com/arianvp/nixos-gitlab-runner/-/archive/9126927c701aa399bd1734e7e5230c3a0010c1b7/nixos-gitlab-runner-9126927c701aa399bd1734e7e5230c3a0010c1b7.tar.gz";
|
|
sha256 = "1s0fy5ny2ygcfvx35xws8xz5ih4z4kdfqlq3r6byxpylw7r52fyi";
|
|
};
|
|
in
|
|
{
|
|
imports = [
|
|
"${gitlabModule}/gitlab-runner.nix"
|
|
];
|
|
|
|
services.gitlab-runner2.enable = true;
|
|
# The module depends on gitlab-runner to have a "bin" output.
|
|
services.gitlab-runner2.package = pkgs.gitlab-runner // {
|
|
bin = pkgs.gitlab-runner;
|
|
};
|
|
services.gitlab-runner2.registrationConfigFile = "/run/keys/gitlab-runner-registration";
|
|
}
|