depot/ops/vault/cfg/config.nix

96 lines
2.6 KiB
Nix
Raw Normal View History

2022-03-14 23:34:33 +00:00
{ lib, config, ... }:
2022-03-14 21:29:15 +00:00
{
2022-03-14 23:34:33 +00:00
imports = [
./policies-raw.nix
./policies-app.nix
./authbackend-approle.nix
./authbackend-oidc.nix
2022-05-21 14:42:55 +00:00
./authbackend-authentik.nix
2022-03-14 23:34:33 +00:00
./ssh-ca-client.nix
./ssh-ca-server.nix
./servers.nix
2022-03-16 00:18:47 +00:00
./acme-ca.nix
2022-04-05 21:04:32 +00:00
./lukegbcom-deployer.nix
./binary-cache-deployer.nix
2022-03-14 23:34:33 +00:00
];
2022-03-14 21:29:15 +00:00
terraform = {
backend.gcs = {
bucket = "lukegb-terraform-state";
prefix = "depot/vault";
};
required_providers.vault = {
source = "hashicorp/vault";
version = "3.3.1";
};
};
2022-03-14 23:34:33 +00:00
provider.vault = {
address = "https://vault.int.lukegb.com";
};
2022-04-05 21:04:32 +00:00
resource.vault_gcp_secret_backend.gcp = {
path = "gcp";
};
data.vault_generic_secret.misc = {
path = "kv/misc-input";
};
2022-04-09 19:59:11 +00:00
my.apps.deluge = {};
2022-04-10 00:37:37 +00:00
my.apps.fup = {};
2022-04-09 20:51:24 +00:00
my.apps.matrix-synapse = {};
2022-03-14 23:34:33 +00:00
my.apps.pomerium = {};
2022-04-09 20:51:24 +00:00
my.apps.quotesdb = {};
my.apps.turn = {};
my.apps.twitterchiver = {};
2022-04-09 19:59:11 +00:00
my.apps.sslrenew-raritan.policy = ''
# sslrenew-raritan is permitted to issue certificates.
path "acme/certs/*" {
capabilities = ["create"]
}
'';
my.apps.deployer.policy = ''
# Allow reading nix-daemon secrets
path "kv/data/apps/nix-daemon" {
capabilities = ["read"]
}
path "kv/metadata/apps/nix-daemon" {
capabilities = ["read"]
}
'';
2022-05-12 22:55:10 +00:00
my.apps.authentik = {};
2024-11-17 01:01:18 +00:00
my.apps.forgejo-runner = {};
my.apps.plex-pass = {};
2023-01-09 02:09:04 +00:00
my.apps.ads-b = {};
2023-03-09 21:33:42 +00:00
my.apps.nixbuild = {};
2023-04-18 20:05:51 +00:00
my.apps.tumblrandom = {};
my.apps.netbox = {};
my.apps.hacky-vouchproxy = {};
my.apps.hackyplayer = {};
my.apps.emfminiserv = {};
2024-10-21 03:56:28 +00:00
my.apps.bsky-pds = {};
2022-04-09 19:59:11 +00:00
my.servers.etheroute-lon01.apps = [ "pomerium" ];
2024-11-17 01:01:18 +00:00
my.servers.bvm-forgejo.apps = [ "pomerium" "forgejo-runner" ];
2023-03-09 21:33:42 +00:00
my.servers.howl.apps = [ "nixbuild" ];
my.servers.porcorosso.apps = [ "quotesdb" "nixbuild" ];
my.servers.nausicaa.apps = [ "quotesdb" "nixbuild" "hacky-vouchproxy" "hackyplayer" "emfminiserv" ];
2023-04-18 20:05:51 +00:00
my.servers.totoro.apps = [ "sslrenew-raritan" "deluge" "quotesdb" "authentik" "ads-b" "nixbuild" "tumblrandom" ];
2022-04-09 19:59:11 +00:00
my.servers.clouvider-fra01.apps = [ "deluge" ];
2024-11-17 01:01:18 +00:00
my.servers.clouvider-lon01.apps = [ "quotesdb" "nixbuild" ];
my.servers.cofractal-ams01.apps = [ "deluge" "nixbuild" ];
2022-04-09 20:51:24 +00:00
my.servers.bvm-twitterchiver.apps = [ "twitterchiver" ];
my.servers.bvm-matrix.apps = [ "turn" "matrix-synapse" ];
my.servers.bvm-prosody.apps = [ "turn" ];
my.servers.bvm-nixosmgmt.apps = [ "plex-pass" ];
my.servers.bvm-netbox.apps = [ "netbox" ];
2024-11-17 01:01:18 +00:00
my.servers.rexxar.apps = [ "deluge" "forgejo-runner" "nixbuild" "hacky-vouchproxy" "hackyplayer" "emfminiserv" "fup" "bsky-pds" ];
2022-03-14 21:29:15 +00:00
}