nixos-config/flake/devshell.nix

35 lines
775 B
Nix
Raw Permalink Normal View History

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-14 01:55:51 +08:00
random
2024-12-01 16:16:09 +08:00
cloudflare
2024-12-15 16:23:50 +08:00
vultr
2024-12-14 01:55:51 +08:00
terraform-providers-bin.providers.Backblaze.b2
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;
};
};
}