Personal Nix setup
at main 398 B view raw
1{ lib, config, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.modules.development; 6in { 7 options.modules.development.terraform = { 8 enable = mkOption { 9 default = cfg.enable; 10 example = true; 11 description = "Whether to enable Terraform configuration."; 12 type = types.bool; 13 }; 14 }; 15 16 config = mkIf cfg.terraform.enable { 17 home.packages = with pkgs; [ terraform ]; 18 }; 19}