diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-24 13:35:39 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-09-24 13:35:47 -0500 |
| commit | c1cef0f7eafaf85bbae9878b92971a97d7583247 (patch) | |
| tree | be4e6c6a01d584fdbfc58cc328ecca54f7be6319 /modules/terminal/nixos | |
| parent | c9ec61f01a26cff66ef779f0b94694684a16d7da (diff) | |
changes; im lazy
Diffstat (limited to 'modules/terminal/nixos')
| -rw-r--r-- | modules/terminal/nixos/bash.nix | 16 | ||||
| -rw-r--r-- | modules/terminal/nixos/default.nix | 4 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/terminal/nixos/bash.nix b/modules/terminal/nixos/bash.nix new file mode 100644 index 0000000..393ab94 --- /dev/null +++ b/modules/terminal/nixos/bash.nix @@ -0,0 +1,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 + ''; + }; + } diff --git a/modules/terminal/nixos/default.nix b/modules/terminal/nixos/default.nix index 8118c63..4ececfa 100644 --- a/modules/terminal/nixos/default.nix +++ b/modules/terminal/nixos/default.nix @@ -1,6 +1,10 @@ {config, ...}: let cfg = config.collinux.terminal.shells; in { + imports = [ + ./bash.nix + ]; + programs.command-not-found.enable = false; # broken without nix-channels users.users."${config.collinux.user.name}" = { |
