Allow building terraform even though its nonfree

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2023-11-20 00:30:33 +01:00
parent 8cb85d620f
commit b6df5483bd
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -146,10 +146,16 @@
uterranix.terraform = pkgs: uterranix.terraform = pkgs:
let let
hpkgs = inputs.nixpkgs.legacyPackages.${pkgs.stdenv.system}.appendOverlays (with config.flake.overlays; [ hpkgs = import inputs.nixpkgs {
terraform-provider-vault inherit (pkgs.stdenv) system;
terraform-provider-influxdb-v2 overlays = with self.overlays; [
]); terraform-provider-vault
terraform-provider-influxdb-v2
];
config.allowUnfreePredicate = lib'.traceVal (pkgs: builtins.elem (lib'.getName pkgs) [
"terraform"
]);
};
in in
hpkgs.terraform.withPlugins (p: [ hpkgs.terraform.withPlugins (p: [
p.consul p.consul