This commit is contained in:
Aditya 2024-04-11 17:58:40 +05:30
parent 5d913650cc
commit 461cdc34dd
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 22 additions and 9 deletions

View file

@ -106,15 +106,6 @@
"electron-25.9.0" "electron-25.9.0"
]; ];
programs.bash = {
enable = false;
bashrcExtra = ''
. ~/.bashrc
eval "$(direnv hook bash)"
eval "$(starship init bash)"
'';
};
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;

View 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)"
'';
};
};
}

View file

@ -1,7 +1,10 @@
{lib, ...}: { {lib, ...}: {
imports = [ imports = [
./bash
./session-vars ./session-vars
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
bash.enable = lib.mkDefault true;
} }