Skip to content

Commit

Permalink
[chore]: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jan 8, 2024
1 parent 4346fa6 commit d479add
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@
systems = ["x86_64-linux"];

imports = [
./flake/pre-commit-hooks.nix
./flake/treefmt.nix

./home/profiles
./hosts
./lib
./modules
./pkgs
./pre-commit-hooks.nix
./treefmt.nix
];

Expand Down
3 changes: 3 additions & 0 deletions pre-commit-hooks.nix → flake/pre-commit-hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
imports = [inputs.pre-commit-hooks.flakeModule];

perSystem.pre-commit = {
check.enable = true;

settings.excludes = ["flake.lock"];

settings.hooks = {
alejandra.enable = true;
actionlint.enable = true;
prettier.enable = true;
treefmt.enable = true;
};
Expand Down
6 changes: 4 additions & 2 deletions treefmt.nix → flake/treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

programs = {
alejandra.enable = true;
black.enable = true;
deadnix.enable = true;
prettier.enable = true;
shellcheck.enable = true;
shfmt.enable = true;
shfmt = {
enable = true;
indent_size = 2;
};
};
};
}

0 comments on commit d479add

Please sign in to comment.