about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/default.nix1
-rw-r--r--home/terraform/default.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/home/default.nix b/home/default.nix
index f2111db..7972470 100644
--- a/home/default.nix
+++ b/home/default.nix
@@ -30,6 +30,7 @@
     ./ssh
     ./sublime-music
     ./terminal
+    ./terraform
     ./tmux
     ./transmission-remote
     ./vlc
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 ]);
+}