mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 01:42:55 +00:00
27 lines
487 B
Nix
27 lines
487 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options.terraform.enable = lib.mkEnableOption "Terraform tools.";
|
|
|
|
config = lib.mkIf config.terraform.enable {
|
|
unfreePackages = [ "terraform" ];
|
|
|
|
home-manager.users.${config.user} = {
|
|
programs.fish.shellAbbrs = {
|
|
# Terraform
|
|
te = "terraform";
|
|
};
|
|
home.packages = with pkgs; [
|
|
terraform # Terraform executable
|
|
terraform-ls # Language server
|
|
tflint # Linter
|
|
];
|
|
};
|
|
};
|
|
}
|