move bash config to configuration.ix and add devenv hook

This commit is contained in:
lucy 2026-07-23 15:16:43 +02:00
commit 1fdebac787
2 changed files with 5 additions and 7 deletions

View file

@ -64,11 +64,16 @@
];
programs.bash = {
completion.enable = true;
shellAliases = {
"rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure";
};
promptInit = ''
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
'';
interactiveShellInit = ''
complete -F _command doas
eval "$(devenv hook bash)"
'';
};
# Enable CUPS to print documents.

View file

@ -57,13 +57,6 @@
};
};
};
programs.bash = {
enable = true;
enableCompletion = true;
shellAliases = {
"rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure";
};
};
programs.google-chrome.enable = true;
programs.foot = {
enable = true;