diff --git a/programs/editors/nvim/home-manager.nix b/programs/editors/nvim/home-manager.nix index 4da87e56..d091e591 100644 --- a/programs/editors/nvim/home-manager.nix +++ b/programs/editors/nvim/home-manager.nix @@ -1,5 +1,6 @@ { pkgs, + config, ... }: { @@ -53,9 +54,9 @@ withPython3 = true; }; systemd.user.tmpfiles.rules = [ - "d %h/.cache/nvim/undo-files 0700 - - mM:1w -" - "d %h/.cache/nvim/swap-files 0700 - - mM:1w -" - "d %h/.cache/nvim/backup-files 0700 - - mM:1w -" + "d /persistent${config.xdg.cacheHome}/nvim/undo-files 0700 - - mM:1w -" + "d /persistent${config.xdg.cacheHome}/nvim/swap-files 0700 - - mM:1w -" + "d /persistent${config.xdg.cacheHome}/nvim/backup-files 0700 - - mM:1w -" ]; xdg.configFile.nvim = { recursive = true;