mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-01-09 04:51:20 +01:00
28 lines
631 B
Nix
28 lines
631 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|