aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/nixos/programs/bash.nix
blob: ed2c2269deeb58c121be489f14989c84af918c3a (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
31
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
        ];
      };
    };
  }