2023-07-28 13:50:14 +00:00
|
|
|
{
|
|
|
|
perSystem =
|
2024-07-09 11:47:37 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs',
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-03-12 10:28:00 +00:00
|
|
|
let
|
2024-06-06 15:52:20 +00:00
|
|
|
convert2Tofu =
|
|
|
|
provider:
|
|
|
|
provider.override (prev: {
|
|
|
|
homepage = builtins.replaceStrings [ "registry.terraform.io/providers" ] [
|
|
|
|
"registry.opentofu.org"
|
|
|
|
] prev.homepage;
|
|
|
|
});
|
2024-03-12 10:28:00 +00:00
|
|
|
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
|
|
|
|
2024-07-09 11:47:37 +00:00
|
|
|
pkgs.nixVersions.latest
|
|
|
|
|
|
|
|
inputs'.clan-core.packages.tea-create-pr
|
|
|
|
inputs'.clan-core.packages.merge-after-ci
|
2023-08-08 12:13:13 +00:00
|
|
|
inputs'.clan-core.packages.clan-cli
|
|
|
|
|
2024-07-09 11:47:37 +00:00
|
|
|
# treefmt with config defined in ./flake.nix
|
|
|
|
config.treefmt.build.wrapper
|
|
|
|
|
2024-06-06 15:52:20 +00:00
|
|
|
(pkgs.opentofu.withPlugins (
|
|
|
|
p:
|
|
|
|
builtins.map convert2Tofu [
|
|
|
|
p.hetznerdns
|
|
|
|
p.hcloud
|
|
|
|
p.null
|
|
|
|
p.external
|
|
|
|
p.local
|
|
|
|
]
|
|
|
|
))
|
2023-07-28 13:50:14 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|