nix-git/modules/bash.nix

28 lines
635 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" ];
2025-02-09 21:35:44 +01:00
home-manager.users."yoda" = { osConfig, config, pkgs, ... }: {
2025-01-06 16:05:58 +01:00
programs.bash = bash-config;
};
2025-02-09 21:35:44 +01:00
home-manager.users."root" = { osConfig, config, pkgs, ... }: {
2025-01-06 16:05:58 +01:00
programs.bash = bash-config;
};
}