Better hooks

This commit is contained in:
Filippo Berto 2026-02-01 14:34:12 +01:00
parent 2e96c60b85
commit a813238c55
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC

View file

@ -31,10 +31,7 @@
ragenix = { url = "github:yaxitech/ragenix"; inputs.nixpkgs.follows = "nixpkgs"; }; ragenix = { url = "github:yaxitech/ragenix"; inputs.nixpkgs.follows = "nixpkgs"; };
# Desktop environment theming and rice configuration # Desktop environment theming and rice configuration
nix-rice = { nix-rice = { url = "github:bertof/nix-rice/modules"; inputs.nixpkgs.follows = "nixpkgs"; };
url = "github:bertof/nix-rice/modules";
inputs.nixpkgs.follows = "nixpkgs";
};
# Generate NixOS system images (ISO, VM, etc.) # Generate NixOS system images (ISO, VM, etc.)
nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixpkgs"; }; nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixpkgs"; };
@ -53,10 +50,7 @@
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
# Git pre-commit hooks for code quality # Git pre-commit hooks for code quality
git-hooks = { git-hooks = { url = "github:cachix/git-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; };
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# TODO: Additional tools to evaluate # TODO: Additional tools to evaluate
# agenix-shell.url = "github:aciceri/agenix-shell"; # TODO # agenix-shell.url = "github:aciceri/agenix-shell"; # TODO
@ -99,6 +93,11 @@
deadnix.enable = true; # Remove dead code from Nix expressions deadnix.enable = true; # Remove dead code from Nix expressions
nixpkgs-fmt.enable = true; # Format Nix code nixpkgs-fmt.enable = true; # Format Nix code
statix.enable = true; # Lint Nix code for best practices statix.enable = true; # Lint Nix code for best practices
flake-checker.enable = true;
# Markdown
mdformat.enable = true;
markdownlint.enable = true;
}; };
# Default development shell # Default development shell