infrastructure/machines/nixos/compute01/nimbolus.nix
catvayor 38ab34aaf3
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 19s
Build all the nodes / Jaccess04 (pull_request) Successful in 25s
Build all the nodes / Jaccess01 (pull_request) Successful in 30s
Build all the nodes / netcore01 (pull_request) Successful in 28s
Build all the nodes / netcore02 (pull_request) Successful in 28s
Run pre-commit on all files / pre-commit (push) Successful in 32s
Run pre-commit on all files / pre-commit (pull_request) Successful in 32s
Build all the nodes / ap01 (pull_request) Successful in 48s
Build all the nodes / bridge01 (pull_request) Successful in 58s
Build all the nodes / geo01 (pull_request) Successful in 58s
Build all the nodes / hypervisor02 (pull_request) Successful in 58s
Build all the nodes / hypervisor03 (pull_request) Successful in 1m3s
Build all the nodes / cof02 (pull_request) Successful in 1m6s
Build all the nodes / lab-router01 (pull_request) Successful in 1m6s
Build all the nodes / geo02 (pull_request) Successful in 1m8s
Build all the nodes / hypervisor01 (pull_request) Successful in 1m8s
Build all the nodes / build01 (pull_request) Successful in 1m13s
Build all the nodes / tower01 (pull_request) Successful in 54s
Build all the nodes / iso (pull_request) Successful in 1m12s
Build the shell / build-shell (pull_request) Successful in 26s
Build all the nodes / vault01 (pull_request) Successful in 1m12s
Build all the nodes / compute01 (pull_request) Successful in 1m43s
Build all the nodes / web02 (pull_request) Successful in 1m13s
Build all the nodes / zulip01 (pull_request) Successful in 1m13s
Build all the nodes / web03 (pull_request) Successful in 1m18s
Build all the nodes / rescue01 (pull_request) Successful in 1m36s
Build all the nodes / krz01 (pull_request) Successful in 1m51s
Build all the nodes / storage01 (pull_request) Successful in 1m36s
Build all the nodes / web01 (pull_request) Successful in 1m26s
feat(nimbolus): init a http terraform backend
2025-06-14 21:33:00 +02:00

39 lines
1 KiB
Nix

# SPDX-FileCopyrightText: 2025 Lubin Bailly <lubin@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
pkgs,
sources,
config,
...
}:
let
host = "nimbolus.dgnum.eu";
port = 9008;
in
{
services.nimbolus-tf = {
enable = true;
package = (import sources.kat-pkgs { inherit pkgs; }).nimbolus-tf-backend;
environment = {
LISTEN_ADDR = "127.0.0.1:${toString port}";
STORAGE_BACKEND = "s3";
STORAGE_S3_ENDPOINT = "s3.dgnum.eu";
STORAGE_S3_USE_SSL = "true";
STORAGE_S3_BUCKET = "monorepo-terraform-state";
# TODO: configure openBAO
# AUTH_BASIC_ENABLED = "false";
# AUTH_JWT_OIDC_ISSUER_URL = "https://vault.dgnum.eu/v1/identity/oidc";
};
secretEnvironment = {
KMS_KEY = config.age.secrets."nimbolus-kms_key".path;
STORAGE_S3_ACCESS_KEY = config.age.secrets."nimbolus-s3_access".path;
STORAGE_S3_SECRET_KEY = config.age.secrets."nimbolus-s3_secret".path;
};
};
dgn-web.simpleProxies.nimbolus = {
inherit host port;
};
}