mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-31 12:12:03 +00:00
31 lines
446 B
Nix
31 lines
446 B
Nix
|
{
|
||
|
config,
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.nmasur.presets.programs.terraform;
|
||
|
in
|
||
|
{
|
||
|
|
||
|
options.nmasur.presets.programs.terraform.enable =
|
||
|
lib.mkEnableOption "Terraform infrastructure management";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
|
||
|
unfreePackages = [ "terraform" ];
|
||
|
|
||
|
programs.fish.shellAbbrs = {
|
||
|
te = "terraform";
|
||
|
};
|
||
|
|
||
|
home.packages = with pkgs; [
|
||
|
terraform
|
||
|
terraform-ls
|
||
|
tflint
|
||
|
];
|
||
|
};
|
||
|
}
|