Fediversity/deployment/run/tf-proxmox-template/tf.nix
Kiara Grouwstra ca8ba444b7
centralize TF
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
2025-11-10 13:22:22 +01:00

25 lines
644 B
Nix

{
pkgs,
}:
let
sources = import ../../../npins;
mkProvider =
args:
pkgs.terraform-providers.mkProvider (
{ mkProviderFetcher = { repo, ... }: sources.${repo}; } // args
);
in
(pkgs.callPackage ../../tf.nix { }).withPlugins (p: [
p.external
(mkProvider {
owner = "bpg";
repo = "terraform-provider-proxmox";
# 0.82+ need go 1.25
rev = "v0.81.0";
spdx = "MPL-2.0";
hash = null;
vendorHash = "sha256-cpei22LkKqohlE76CQcIL5d7p+BjNcD6UQ8dl0WXUOc=";
homepage = "https://registry.terraform.io/providers/bpg/proxmox";
provider-source-address = "registry.opentofu.org/bpg/proxmox";
})
])