fix: nix presence plugin

This commit is contained in:
Rasyidan Akbar F. 2025-12-18 15:12:23 +07:00
commit 560043b9a1

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, config, ... }: {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
viAlias = true; viAlias = true;
@ -59,4 +59,16 @@
source = ./nvim; source = ./nvim;
recursive = true; recursive = true;
}; };
# Copy lazy-lock.json as writable (not symlinked to read-only Nix store)
home.activation.makeNvimLockWritable = config.lib.dag.entryAfter [ "linkGeneration" ] ''
lockFile="${config.xdg.configHome}/nvim/lazy-lock.json"
sourceLock="${./nvim/lazy-lock.json}"
if [ -L "$lockFile" ]; then
rm "$lockFile"
cp "$sourceLock" "$lockFile"
chmod 644 "$lockFile"
fi
'';
} }