mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
programs-bash: use bashInteractive
This commit is contained in:
parent
707cdd517b
commit
338a4e85cc
1 changed files with 3 additions and 3 deletions
|
@ -6,13 +6,13 @@ let
|
||||||
|
|
||||||
cfg = config.programs.bash;
|
cfg = config.programs.bash;
|
||||||
|
|
||||||
shell = pkgs.runCommand pkgs.zsh.name
|
shell = pkgs.runCommand pkgs.bashInteractive.name
|
||||||
{ buildInputs = [ pkgs.makeWrapper ]; }
|
{ buildInputs = [ pkgs.makeWrapper ]; }
|
||||||
''
|
''
|
||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${pkgs.bash}/bin/bash $out/bin/bash
|
makeWrapper ${pkgs.bashInteractive}/bin/bash $out/bin/bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -42,7 +42,7 @@ in
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ # Include bash package
|
[ # Include bash package
|
||||||
pkgs.bash
|
pkgs.bashInteractive
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.loginShell = mkDefault "${shell}/bin/bash -l";
|
environment.loginShell = mkDefault "${shell}/bin/bash -l";
|
||||||
|
|
Loading…
Reference in a new issue