mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-09 10:16:55 +00:00
20 lines
368 B
Nix
20 lines
368 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.bash = {
|
|
enable = true;
|
|
historyControl = [ "erasedups" ];
|
|
historyFile = "/home/hm-user/foo/bash/history";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.bashrc
|
|
|
|
assertFileRegex home-files/.bashrc \
|
|
'^mkdir -p "\$(dirname "\$HISTFILE")"'
|
|
'';
|
|
};
|
|
}
|