mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +00:00
21 lines
368 B
Nix
21 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")"'
|
||
|
'';
|
||
|
};
|
||
|
}
|