dotfiles/devenv.nix
alejandro-angulo 34246c71d4
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Manage pre-commit hooks with devenv
2025-08-02 22:29:10 -07:00

21 lines
405 B
Nix

{ pkgs, ... }:
{
packages = [
pkgs.nixfmt-rfc-style
pkgs.nixd
pkgs.deploy-rs
pkgs.git
];
git-hooks.hooks = {
# Basic file hygiene
trim-trailing-whitespace.enable = true;
end-of-file-fixer.enable = true;
check-yaml.enable = true;
check-added-large-files = {
enable = true;
excludes = [ ".*\\.png$" ];
};
nixfmt-rfc-style.enable = true;
};
}