1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 18:59:44 +01:00
home-manager/tests/modules/programs/zsh/history-path-new-custom.nix

21 lines
414 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
config = {
home.stateVersion = "20.03";
programs.zsh = {
enable = true;
history.path = "$HOME/some/directory/zsh_history";
};
2020-02-02 00:39:17 +01:00
nixpkgs.overlays =
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
nmt.script = ''
assertFileRegex home-files/.zshrc '^HISTFILE="$HOME/some/directory/zsh_history"$'
'';
};
}