clan-infra/devShells/flake-module.nix

35 lines
746 B
Nix
Raw Normal View History

2023-07-28 13:50:14 +00:00
{
perSystem =
{ inputs'
, pkgs
2023-11-03 09:35:35 +00:00
, lib
2023-07-28 13:50:14 +00:00
, ...
2024-03-12 10:28:00 +00:00
}:
let
convert2Tofu = provider: provider.override (prev: {
homepage = builtins.replaceStrings [ "registry.terraform.io/providers" ] [ "registry.opentofu.org" ] prev.homepage;
});
in
{
2023-09-19 12:30:18 +00:00
devShells.default = pkgs.mkShellNoCC {
2023-07-28 13:50:14 +00:00
packages = [
pkgs.bashInteractive
pkgs.sops
2023-08-08 12:13:13 +00:00
inputs'.clan-core.packages.clan-cli
2024-03-12 10:28:00 +00:00
(pkgs.opentofu.withPlugins (p: builtins.map convert2Tofu [
2023-07-28 13:50:14 +00:00
p.hetznerdns
p.hcloud
p.null
p.external
p.local
2024-03-12 10:28:00 +00:00
]))
2023-07-28 13:50:14 +00:00
];
inputsFrom = [
inputs'.clan-core.devShells.default
];
};
};
}