Source relevant '.bashrc.d/*' files in NixOS home manager

main
Hektor Misplon 2025-10-05 19:33:17 +02:00
parent 851f226518
commit 069a3b8333
1 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ config, pkgs, ... }:
{
home.stateVersion = "25.05";
@ -9,7 +9,12 @@
programs = {
bash = {
enable = true;
# TODO
enableCompletion = true;
initExtra = ''
for f in ${config.home.homeDirectory}/.bashrc.d/*; do
[ -f "$f" ] && source "$f"
done
'';
};
firefox.enable = true;
fzf = {
@ -73,5 +78,9 @@
yaml-language-server
];
home.file.".inputrc".source = ../../dots/.inputrc;
home.file = {
".inputrc".source = ../../dots/.inputrc;
".bashrc.d/prompt".source = ../../dots/.bashrc.d/prompt;
".bashrc.d/editor".source = ../../dots/.bashrc.d/editor;
};
}