about summary refs log tree commit diff
path: root/home/terraform/default.nix
blob: b307bd7868a91fb2af0e2655a864f59638f273c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ lib, config, pkgs, ... }:
let cfg = config.my.home.terraform;
in
{
  options.my.home.terraform = with lib; {
    enable = mkEnableOption "terraform configuration";
  };

  config.home.packages = with pkgs; lib.mkIf cfg.enable ([
    terraform
    terraform-ls # official lsp-server
  ]);
}