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

@@ -18,6 +18,7 @@ in
../../modules/keepassxc.nix ../../modules/keepassxc.nix
../../modules/anki.nix ../../modules/anki.nix
../../modules/browser ../../modules/browser
../../modules/shell
]; ];
home.stateVersion = "25.05"; home.stateVersion = "25.05";
@@ -29,28 +30,12 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
shell.bash = {
enable = true;
aliases.lang-js = true;
};
programs = { 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; home-manager.enable = true;
taskwarrior.config.recurrence = lib.mkForce "on"; taskwarrior.config.recurrence = lib.mkForce "on";
}; };
@@ -61,11 +46,6 @@ in
}; };
home.file = { 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/kitty.conf".source = ../../../dots/.config/kitty/kitty.conf;
".config/kitty/themes/zenwritten_light.conf".source = ".config/kitty/themes/zenwritten_light.conf".source =
../../../dots/.config/kitty/themes/zenwritten_light.conf; ../../../dots/.config/kitty/themes/zenwritten_light.conf;

View File

@@ -16,6 +16,7 @@ in
../../modules/taskwarrior.nix ../../modules/taskwarrior.nix
../../modules/keepassxc.nix ../../modules/keepassxc.nix
../../modules/browser ../../modules/browser
../../modules/shell
]; ];
home.stateVersion = "25.05"; home.stateVersion = "25.05";
@@ -27,28 +28,12 @@ in
browser.primary = "librewolf"; browser.primary = "librewolf";
shell.bash = {
enable = true;
aliases.lang-js = true;
};
programs = { 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; home-manager.enable = true;
}; };
@@ -58,11 +43,6 @@ in
}; };
home.file = { 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/kitty.conf".source = ../../../dots/.config/kitty/kitty.conf;
".config/kitty/themes/zenwritten_light.conf".source = ".config/kitty/themes/zenwritten_light.conf".source =
../../../dots/.config/kitty/themes/zenwritten_light.conf; ../../../dots/.config/kitty/themes/zenwritten_light.conf;