mirror of
https://github.com/nix-community/home-manager
synced 2024-12-04 17:09:47 +01:00
bash: add package option
This commit is contained in:
parent
086f619dd9
commit
2598861031
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@ in {
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = mkEnableOption "GNU Bourne-Again SHell";
|
enable = mkEnableOption "GNU Bourne-Again SHell";
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "bash" { default = "bashInteractive"; };
|
||||||
|
|
||||||
enableCompletion = mkOption {
|
enableCompletion = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -190,7 +192,7 @@ in {
|
||||||
HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
|
HISTIGNORE = escapeShellArg (concatStringsSep ":" cfg.historyIgnore);
|
||||||
}));
|
}));
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.bashInteractive ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
home.file.".bash_profile".source = writeBashScript "bash_profile" ''
|
home.file.".bash_profile".source = writeBashScript "bash_profile" ''
|
||||||
# include .profile if it exists
|
# include .profile if it exists
|
||||||
|
|
Loading…
Reference in a new issue