31 lines
1.3 KiB
Nix
31 lines
1.3 KiB
Nix
# start with:
|
|
# export GITLAB_TOKEN=""
|
|
{ config, lib, ... }:
|
|
{
|
|
terraform.required_providers.gitlab.source = "gitlabhq/gitlab";
|
|
|
|
provider.gitlab = {
|
|
base_url = "https://gitlab.ingolf-wagner.de/api/v4/";
|
|
};
|
|
|
|
resource.gitlab_deploy_key =
|
|
let
|
|
ssh_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDNRzdW7SYizwrECoTJbL0peeTkaRfAT5Jjefgad+MmHFHsRRy/q2bDQLlhKGPC4I0gXsaYuZSeSpaCwa6JHwDXDUjeSwj/osKE7lDnRx0XmGKKwZPNU4KuI9CUH450p5M9w3KgSmKEXJKayUz1/8E4WlSjfSkqpGwkhCeHtuIVd6Wei+fU/7uzYrL6tg8ZZD3omvvD4AxCEzNvM3wuX915K0x52GySJLpQUt9xYZLb1qrQAkVAnOE2ZZLx5rVzDLJkPrPRQ5Og3Yi3mT469AbKM/XPPuVgluiMCLOq8avAOQGK2brKjdaw2m3bDKuH18WJfMwwu/0uzSe1CWBwNj8/gAQapevhoYwMLjK9eJvWBh2Wc7tgHO51uZM3mVTylWFlsundM2ASssVHueReNpnUtMvXdCPHb0ZmZNy/3NW0u+y7FnLRvnrRSF8TYPeUYTOoRd0nbvwb6R0mBvHFqjs6ILLL7+d+JHCBnGAxu3AwgWAsS8LP3G+VL7arb1pEVJK52Svjoi2tPXWaRixAB1KxMep44UtY+TCGs+5fx++y2sUGhcEJBxXywpFmAPjOZLRuiDcnsWxZfTSMkQowoG6PUtcplasY4+NzJ/ivBjfka111KRLURNIRkCGaBZKPAROkGd9iKdiSENdpXRwubFl5ISjEPR3tdZaTY97w+hj8OQ==";
|
|
work_repositories = {
|
|
mindcurv = "palo/mindcurv_nix";
|
|
timewarrior = "palo/timewarrior_mindcurv";
|
|
};
|
|
|
|
repository = name: project_path: {
|
|
name = name;
|
|
value = {
|
|
project = project_path;
|
|
title = "Deployment key";
|
|
key = ssh_key;
|
|
};
|
|
};
|
|
|
|
in
|
|
lib.mapAttrs' repository work_repositories;
|
|
|
|
}
|