From 392e6ae7ec219ed16cf6c238a20f1b810a56f8e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 13 Nov 2024 17:02:27 +0100 Subject: [PATCH] fix cache settings for neovim --- programs/editors/nvim/home-manager.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;