Skip to content

Commit

Permalink
stylix: integrate pre-commit hooks into developer shell
Browse files Browse the repository at this point in the history
Link: danth#519
(cherry picked from commit b3230ef)
  • Loading branch information
trueNAHO committed Jan 4, 2025
1 parent e0df5c7 commit e509a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.direnv/
/.pre-commit-config.yaml
result
result-*
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@
};

devShells.default = pkgs.mkShell {
packages = [ inputs.home-manager.packages.${system}.default ];
inherit (self.checks.${system}.git-hooks) shellHook;

packages = [
inputs.home-manager.packages.${system}.default
self.checks.${system}.git-hooks.enabledPackages
];
};

packages = let
Expand Down

0 comments on commit e509a39

Please sign in to comment.