2024-04-20 09:42:06 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-12-21 14:18:03 -07:00
|
|
|
|
|
|
|
options.terraform.enable = lib.mkEnableOption "Terraform tools.";
|
|
|
|
|
|
|
|
config = lib.mkIf config.terraform.enable {
|
2023-10-08 11:14:50 -04:00
|
|
|
unfreePackages = [ "terraform" ];
|
2022-12-21 14:18:03 -07:00
|
|
|
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
programs.fish.shellAbbrs = {
|
|
|
|
# Terraform
|
|
|
|
te = "terraform";
|
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
terraform # Terraform executable
|
|
|
|
terraform-ls # Language server
|
|
|
|
tflint # Linter
|
|
|
|
];
|
2022-06-21 08:33:05 -04:00
|
|
|
};
|
|
|
|
};
|
2022-06-20 16:14:04 -04:00
|
|
|
}
|