aboutsummaryrefslogtreecommitdiff
path: root/tests/modules/programs/zsh/history-path-old-custom.nix
blob: f5b178b5e975e847a0fe30de7936a560667faafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    home.stateVersion = "19.09";
    programs.zsh = {
      enable = true;
      history.path = "some/directory/zsh_history";
    };

    nixpkgs.overlays =
      [ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];

    nmt.script = ''
      assertFileRegex home-files/.zshrc '^HISTFILE="$HOME/some/directory/zsh_history"$'
    '';
  };
}