aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/nixos/bash.nix
blob: 393ab94c84c6277343c792e85a080846bb1912fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  config,
  lib,
  ...
}: let
  cfg = config.collinux.terminal.shells.bash;
in
  lib.mkIf cfg.enable {
    environment.etc = {
      "bashrc.local".text = ''
        if [ -s "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc" ]; then
          . "''${XDG_CONFIG_HOME:-$HOME/.config}/bash/bashrc"
        fi
      '';
    };
  }