From 37869b01bd9dc7315ee2b1d64be5010e18a8ee04 Mon Sep 17 00:00:00 2001 From: tux Date: Sun, 25 May 2025 16:21:22 +0530 Subject: [PATCH] fix: zsh_history symlinking issue with impermanence --- hosts/arcturus/home.nix | 4 +--- hosts/canopus/home.nix | 2 +- hosts/homelab/home.nix | 2 +- hosts/vps/home.nix | 4 +--- modules/home/shell/default.nix | 1 + 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/hosts/arcturus/home.nix b/hosts/arcturus/home.nix index 3d7ca38..f9a10b1 100644 --- a/hosts/arcturus/home.nix +++ b/hosts/arcturus/home.nix @@ -4,9 +4,7 @@ "Projects" "Stuff" ".ssh" - ]; - files = [ - ".zsh_history" + ".local/share/zsh" ]; allowOther = true; }; diff --git a/hosts/canopus/home.nix b/hosts/canopus/home.nix index fe305aa..e329f84 100644 --- a/hosts/canopus/home.nix +++ b/hosts/canopus/home.nix @@ -86,6 +86,7 @@ ".config/rustdesk" ".config/spotify" ".local/share/nvim" + ".local/share/zsh" ".local/share/zoxide" ".local/share/Smart\ Code\ ltd" ".local/share/GalaxyBudsClient" @@ -94,7 +95,6 @@ ".cache/spotify" ]; files = [ - ".zsh_history" ".wakatime.cfg" ]; allowOther = true; diff --git a/hosts/homelab/home.nix b/hosts/homelab/home.nix index 84dbab2..eca1fd4 100644 --- a/hosts/homelab/home.nix +++ b/hosts/homelab/home.nix @@ -7,11 +7,11 @@ ".wakatime" ".config/sops" ".local/share/nvim" + ".local/share/zsh" ".local/share/zoxide" ".local/state/lazygit" ]; files = [ - ".zsh_history" ".wakatime.cfg" ]; allowOther = true; diff --git a/hosts/vps/home.nix b/hosts/vps/home.nix index 1ae0bdd..fcb9298 100644 --- a/hosts/vps/home.nix +++ b/hosts/vps/home.nix @@ -3,9 +3,7 @@ directories = [ "Projects" ".ssh" - ]; - files = [ - ".zsh_history" + ".local/share/zsh" ]; allowOther = true; }; diff --git a/modules/home/shell/default.nix b/modules/home/shell/default.nix index 9d49ca6..28f7fc1 100755 --- a/modules/home/shell/default.nix +++ b/modules/home/shell/default.nix @@ -10,6 +10,7 @@ ignoreDups = true; size = 1000000; save = 1000000; + path = "$HOME/.local/share/zsh/.zsh_history"; }; syntaxHighlighting.enable = true; autosuggestion.enable = true;