nix-git/modules/bash.nix

28 lines
631 B
Nix
Raw Normal View History

2025-01-06 16:05:58 +01:00
{ config, pkgs, ... }:
let
bash-config = {
enable = true;
enableCompletion = true;
historySize = 1000;
historyControl = [
"erasedups"
"ignoredups"
"ignorespace"
];
};
in
{
# Bash is always enabled, there is no way to disable it ^^
#programs.bash.enable = true;
# Required by home-manager programs.bash.enableCompletion
environment.pathsToLink = [ "/share/bash-completion" ];
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
programs.bash = bash-config;
};
home-manager.users.root = { osConfig, config, pkgs, ... }: {
programs.bash = bash-config;
};
}