mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
feat: update flake.nix
This commit is contained in:
@@ -99,20 +99,23 @@ in {
|
||||
src = mylib.relativeToRoot ".";
|
||||
hooks = {
|
||||
alejandra.enable = true; # formatter
|
||||
typos.enable = true; # Source code spell checker
|
||||
prettier.enable = true;
|
||||
# deadnix.enable = true; # detect unused variable bindings in `*.nix`
|
||||
# statix.enable = true; # lints and suggestions for Nix code(auto suggestions)
|
||||
};
|
||||
settings = {
|
||||
# Source code spell checker
|
||||
typos = {
|
||||
write = true; # Automatically fix typos
|
||||
configPath = "./.typos.toml"; # relative to the flake root
|
||||
enable = true;
|
||||
settings = {
|
||||
write = true; # Automatically fix typos
|
||||
configPath = "./.typos.toml"; # relative to the flake root
|
||||
};
|
||||
};
|
||||
prettier = {
|
||||
write = true; # Automatically format files
|
||||
configPath = "./.prettierrc.yaml"; # relative to the flake root
|
||||
enable = true;
|
||||
settings = {
|
||||
write = true; # Automatically format files
|
||||
configPath = "./.prettierrc.yaml"; # relative to the flake root
|
||||
};
|
||||
};
|
||||
# deadnix.enable = true; # detect unused variable bindings in `*.nix`
|
||||
# statix.enable = true; # lints and suggestions for Nix code(auto suggestions)
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user