From 9bb40136c39eed12fd1cedbcde0a35687d2f969c Mon Sep 17 00:00:00 2001 From: Myned Date: Thu, 26 Dec 2024 00:24:09 -0500 Subject: [PATCH] bash: initial program Signed-off-by: Myned --- options/custom/programs/bash.nix | 22 ++++++++++++++++++++++ options/custom/programs/default.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 options/custom/programs/bash.nix diff --git a/options/custom/programs/bash.nix b/options/custom/programs/bash.nix new file mode 100644 index 0000000..f787786 --- /dev/null +++ b/options/custom/programs/bash.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + ... +}: +with lib; let + cfg = config.custom.programs.bash; +in { + options.custom.programs.bash = { + enable = mkOption {default = false;}; + }; + + config = mkIf cfg.enable { + home-manager.sharedModules = [ + { + programs.bash = { + enable = true; + }; + } + ]; + }; +} diff --git a/options/custom/programs/default.nix b/options/custom/programs/default.nix index 3e2bc2b..097e22d 100644 --- a/options/custom/programs/default.nix +++ b/options/custom/programs/default.nix @@ -6,6 +6,7 @@ with lib; { config.custom.programs = mkMerge [ (mkIf config.custom.default { + bash.enable = true; direnv.enable = true; fastfetch.enable = true; fish.enable = true;