various: remove pre-commit and use devenv for env instead.

This commit is contained in:
2026-08-27 11:32:14 -04:00
parent 46f1e4cf2f
commit 9dbf7040ad
8 changed files with 192 additions and 31 deletions
+57
View File
@@ -0,0 +1,57 @@
{
pkgs,
...
}:
{
languages = {
nix = {
enable = true;
lsp.package = pkgs.nil;
};
};
packages = with pkgs; [
nixfmt
];
git-hooks.hooks = {
nixfmt.enable = true;
nix-flake-check = {
enable = true;
name = "Nix Flake Check";
entry = "nix flake check";
language = "system";
pass_filenames = false;
always_run = true;
};
build-pdw-frankiel = {
enable = true;
name = "Build pdw-frankiel";
entry = "nix build .#nixosConfigurations.pdw-frankiel.config.system.build.toplevel";
language = "system";
pass_filenames = false;
always_run = true;
};
build-nero = {
enable = true;
name = "Build nero";
entry = "nix build .#nixosConfigurations.nero.config.system.build.toplevel";
language = "system";
pass_filenames = false;
always_run = true;
};
build-vergil = {
enable = true;
name = "Build vergil";
entry = "nix build .#nixosConfigurations.vergil.config.system.build.toplevel";
language = "system";
pass_filenames = false;
always_run = true;
};
};
}