From 37f676762b483524eac1901119bb8d820257b60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Wed, 4 Dec 2024 22:32:49 +0100 Subject: [PATCH] :package: Added `genact` in the `development` role --- modules/home/cli/programs/genact/default.nix | 20 ++++++++++++++++++++ modules/home/roles/development/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 modules/home/cli/programs/genact/default.nix diff --git a/modules/home/cli/programs/genact/default.nix b/modules/home/cli/programs/genact/default.nix new file mode 100644 index 0000000..95ce479 --- /dev/null +++ b/modules/home/cli/programs/genact/default.nix @@ -0,0 +1,20 @@ +{ + pkgs, + config, + lib, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkBoolOpt; + + cfg = config.${namespace}.cli.programs.genact; +in +{ + options.${namespace}.cli.programs.genact = { + enable = mkBoolOpt false "Whether or not to enable genact."; + }; + + config = mkIf cfg.enable { home.packages = with pkgs; [ genact ]; }; +} diff --git a/modules/home/roles/development/default.nix b/modules/home/roles/development/default.nix index 6bd8506..283277b 100644 --- a/modules/home/roles/development/default.nix +++ b/modules/home/roles/development/default.nix @@ -52,6 +52,7 @@ in lazygit = enabled; tldr = enabled; krabby = enabled; + genact = enabled; }; }; };