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 = {
|
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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue