mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-22 03:52:53 +00:00
add bash
This commit is contained in:
parent
5d913650cc
commit
461cdc34dd
3 changed files with 22 additions and 9 deletions
|
@ -106,15 +106,6 @@
|
|||
"electron-25.9.0"
|
||||
];
|
||||
|
||||
programs.bash = {
|
||||
enable = false;
|
||||
bashrcExtra = ''
|
||||
. ~/.bashrc
|
||||
eval "$(direnv hook bash)"
|
||||
eval "$(starship init bash)"
|
||||
'';
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
|
|
19
modules/home-manager/bash/default.nix
Normal file
19
modules/home-manager/bash/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
bash.enable = lib.mkEnableOption "enable bash";
|
||||
};
|
||||
config = lib.mkIf config.bash.enable {
|
||||
programs.bash = {
|
||||
enable = false;
|
||||
bashrcExtra = ''
|
||||
. ~/.bashrc
|
||||
eval "$(direnv hook bash)"
|
||||
eval "$(starship init bash)"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,7 +1,10 @@
|
|||
{lib, ...}: {
|
||||
imports = [
|
||||
./bash
|
||||
./session-vars
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
bash.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue