aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/hjem/programs/bash.nix
blob: fe6f21dd2aa5fba02396452840b4a62ee9f47e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  pkgs,
  config,
  lib,
  ...
}: let
  cfg = config.collinux.terminal.shells.bash;
in
  lib.mkIf cfg.enable {
    files = {
      ".config/bash/bashrc".text = ''
        eval "$(direnv hook bash)"

        for file in ~/.config/bash/conf.d/*; do source "$file"; done
      '';
    };

    packages = with pkgs; [
      fish
      ripgrep
      fd
      wget
      moreutils
      zip
      unzip
      btop
      jq
      direnv
    ];
  }