From b102cd5cb27e46b5b4035046bade1bb3d43a83dd Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 7 Aug 2022 15:15:01 -0700 Subject: feat(home/terraform): install terraform when needed Change-Id: Ie87672629ff23eeb93f5308898014cc737490b7c Reviewed-on: https://cl.fcuny.net/c/world/+/708 Tested-by: CI Reviewed-by: Franck Cuny --- home/terraform/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 home/terraform/default.nix (limited to 'home/terraform') diff --git a/home/terraform/default.nix b/home/terraform/default.nix new file mode 100644 index 0000000..0358ca9 --- /dev/null +++ b/home/terraform/default.nix @@ -0,0 +1,10 @@ +{ 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 ]); +} -- cgit 1.4.1