refactor: nix fmt classic to nix fmt
This commit is contained in:
parent
ca78adc858
commit
f9614371a3
57 changed files with 923 additions and 493 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, config, ... }: {
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
|
|
@ -27,7 +28,7 @@
|
|||
|
||||
# Formatters
|
||||
stylua # Lua
|
||||
nixfmt-classic # Nix (matches your fmt command)
|
||||
nixfmt # Nix
|
||||
ruff # Python (formatter + linter)
|
||||
prettierd # JS/TS/JSON/YAML/Markdown
|
||||
rustfmt # Rust
|
||||
|
|
@ -61,15 +62,14 @@
|
|||
};
|
||||
|
||||
# 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}"
|
||||
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
|
||||
'';
|
||||
if [ -L "$lockFile" ]; then
|
||||
rm "$lockFile"
|
||||
cp "$sourceLock" "$lockFile"
|
||||
chmod 644 "$lockFile"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue