aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/bash/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shell/bash/default.nix')
-rw-r--r--modules/shell/bash/default.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/modules/shell/bash/default.nix b/modules/shell/bash/default.nix
deleted file mode 100644
index b14669e..0000000
--- a/modules/shell/bash/default.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-{
- options.shell.bash = {
- enable = lib.mkOption {
- type = lib.types.bool;
- description = "Enables bash.";
- default = true;
- };
- };
-
- config = lib.mkIf config.shell.bash.enable {
- shell.default = lib.mkDefault "bash";
- shell.command =
- lib.mkIf
- (config.shell.default == "bash")
- "${pkgs.zsh}/bin/bash";
-
- programs.bash.enable = true;
- programs.bash.historyFile = "${config.xdg.cacheHome}/bash/history";
- programs.bash.shellAliases = config.shell.alias;
- programs.bash.bashrcExtra = ''
-${if config.tools.utils.fzf.enable then
- "eval \"$(fzf --bash)\""
-else ""}
-${if config.scripts.enable then
- "export PATH=${config.home.homeDirectory}/scripts:$PATH"
-else ""}
- '';
-
- home.activation.createBashCacheDirectory =
- lib.hm.dag.entryAfter
- [ "writeBoundary" ]
- "mkdir -p ${config.xdg.cacheHome}/bash";
- };
-}