feat(home): migrate bash config to shell module

This commit is contained in:
2026-01-15 13:15:48 +01:00
parent 629f25c795
commit a8851e5a91
2 changed files with 12 additions and 52 deletions

View File

@@ -16,6 +16,7 @@ in
../../modules/taskwarrior.nix
../../modules/keepassxc.nix
../../modules/browser
../../modules/shell
];
home.stateVersion = "25.05";
@@ -27,28 +28,12 @@ in
browser.primary = "librewolf";
shell.bash = {
enable = true;
aliases.lang-js = true;
};
programs = {
bash = {
enable = true;
enableCompletion = true;
initExtra = ''
for f in /home/${username}/.bashrc.d/*; do
[ -f "$f" ] && source "$f"
done
source /home/${username}/.bash_aliases/all
source /home/${username}/.bash_aliases/lang-js
# host-specific config goes here
# ...
export PATH=${../../../dots/.bin}:$PATH
'';
};
fzf = {
enable = true;
enableBashIntegration = true;
};
home-manager.enable = true;
};
@@ -58,11 +43,6 @@ in
};
home.file = {
".inputrc".source = ../../../dots/.inputrc;
".bashrc.d/prompt".source = ../../../dots/.bashrc.d/prompt;
".bashrc.d/editor".source = ../../../dots/.bashrc.d/editor;
".bash_aliases/all".source = ../../../dots/.bash_aliases/all;
".bash_aliases/lang-js".source = ../../../dots/.bash_aliases/lang-js;
".config/kitty/kitty.conf".source = ../../../dots/.config/kitty/kitty.conf;
".config/kitty/themes/zenwritten_light.conf".source =
../../../dots/.config/kitty/themes/zenwritten_light.conf;