2024-11-28 01:14:34 +08:00
|
|
|
{
|
|
|
|
perSystem =
|
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
devshells.default = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
just
|
|
|
|
sops
|
|
|
|
rage
|
|
|
|
(opentofu.withPlugins (
|
|
|
|
ps: with ps; [
|
|
|
|
sops
|
|
|
|
tls
|
2024-12-01 16:16:09 +08:00
|
|
|
cloudflare
|
2024-11-28 01:14:34 +08:00
|
|
|
]
|
|
|
|
))
|
|
|
|
];
|
|
|
|
env = [
|
|
|
|
(lib.nameValuePair "DEVSHELL_NO_MOTD" 1)
|
|
|
|
# https://github.com/opentofu/opentofu/issues/1478
|
|
|
|
(lib.nameValuePair "OPENTOFU_STATEFILE_PROVIDER_ADDRESS_TRANSLATION" 0)
|
|
|
|
];
|
|
|
|
devshell.startup.pre-commit-hook.text = config.pre-commit.installationScript;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|