aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/nixos/programs/bash.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/terminal/nixos/programs/bash.nix')
-rw-r--r--modules/terminal/nixos/programs/bash.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/terminal/nixos/programs/bash.nix b/modules/terminal/nixos/programs/bash.nix
new file mode 100644
index 0000000..ed2c226
--- /dev/null
+++ b/modules/terminal/nixos/programs/bash.nix
@@ -0,0 +1,32 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.collinux.terminal.shells.bash;
+in
+ lib.mkIf cfg.enable {
+ hjem.users."${config.collinux.user.name}" = {
+ files = {
+ ".bashrc".text = ''
+ eval "$(direnv hook bash)"
+
+ for file in ~/.config/bash/conf.d/*; do source "$file"; done
+ '';
+
+ packages = with pkgs; [
+ fish
+ ripgrep
+ fd
+ moreutils
+ zip
+ unzip
+ btop
+ jq
+ direnv
+ pay-respects
+ ];
+ };
+ };
+ }