mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
20 lines
548 B
Nix
20 lines
548 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.swarselmodules.bash = lib.mkEnableOption "bash settings";
|
|
config = lib.mkIf config.swarselmodules.bash {
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
# needed for remote builders
|
|
bashrcExtra = lib.mkIf (!config.swarselsystems.isNixos) ''
|
|
export PATH="/nix/var/nix/profiles/default/bin:$PATH"
|
|
'';
|
|
historyFile = "${config.home.homeDirectory}/.histfile";
|
|
historySize = 100000;
|
|
historyFileSize = 100000;
|
|
historyControl = [
|
|
"ignoreboth"
|
|
];
|
|
};
|
|
};
|
|
}
|