fix: nix presence plugin
This commit is contained in:
parent
a9f77f22d9
commit
560043b9a1
1 changed files with 13 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, config, ... }: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
|
|
@ -59,4 +59,16 @@
|
|||
source = ./nvim;
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue