Fix zsh impermanence
https://logs.nix.samueldr.com/nixos-chat/2020-06-07 Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
histFile = "/var/lib/zsh/history";
|
||||
};
|
||||
}
|
||||
|
@@ -34,13 +34,13 @@
|
||||
"/etc/nixos"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
"/var/lib/nixos"
|
||||
"/var/log"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/zsh"
|
||||
"/var/log"
|
||||
];
|
||||
files = [
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/machine-id"
|
||||
"/root/.zsh_history"
|
||||
];
|
||||
};
|
||||
|
||||
|
@@ -2,7 +2,10 @@
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autocd = true;
|
||||
history.expireDuplicatesFirst = true;
|
||||
history = {
|
||||
path = "$HOME/.local/share/zsh/history";
|
||||
expireDuplicatesFirst = true;
|
||||
};
|
||||
historySubstringSearch.enable = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
@@ -72,10 +72,10 @@ in
|
||||
"VMs"
|
||||
"git"
|
||||
".mozilla"
|
||||
".local/share/zsh"
|
||||
];
|
||||
files = [
|
||||
".zsh_history"
|
||||
".key.txt"
|
||||
".local/share/sops-nix/key.txt"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user