Configuration for my NixOS based systems and Home Manager
at misaki 16 lines 524 B view raw
1let 2 nix-pre-commit-hooks = import (builtins.fetchTarball "https://github.com/cachix/pre-commit-hooks.nix/tarball/master"); 3in 4{ 5 # Configured with the module options defined in `modules/pre-commit.nix`: 6 pre-commit-check = nix-pre-commit-hooks.run { 7 src = ./.; 8 # If your hooks are intrusive, avoid running on each commit with a default_states like this: 9 # default_stages = ["manual" "push"]; 10 hooks = { 11 nixpkgs-fmt.enable = true; 12 nil.enable = true; 13 luacheck.enable = true; 14 }; 15 }; 16}