Skip to content

Commit

Permalink
bash: add package option
Browse files Browse the repository at this point in the history
  • Loading branch information
Aehmlo authored Aug 18, 2024
1 parent 086f619 commit 2598861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/programs/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ in {
programs.bash = {
enable = mkEnableOption "GNU Bourne-Again SHell";

package = mkPackageOption pkgs "bash" { default = "bashInteractive"; };

enableCompletion = mkOption {
type = types.bool;
default = true;
Expand Down Expand Up @@ -190,7 +192,7 @@ in {
HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
}));
in mkIf cfg.enable {
home.packages = [ pkgs.bashInteractive ];
home.packages = [ cfg.package ];

home.file.".bash_profile".source = writeBashScript "bash_profile" ''
# include .profile if it exists
Expand Down

0 comments on commit 2598861

Please sign in to comment.