Skip to content

Commit

Permalink
fix warning, settings moved inside hooks
Browse files Browse the repository at this point in the history
fix warning 2, nixfmt rename
  • Loading branch information
phanirithvij committed Jun 8, 2024
1 parent 181da46 commit 1ad5645
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let
inherit system;
overlays = [
(self: super: {
nixfmt = super.nixfmt.overrideAttrs (old: {
nixfmt = super.nixfmt-classic.overrideAttrs (old: {
src = pins.nixfmt;
});
})
Expand All @@ -18,9 +18,11 @@ let
pre-commit = (import pins."pre-commit-hooks.nix").run {
src = ./.;
tools.nixfmt = pkgs.nixfmt; # Why don't they just take it from our pkgs?
settings.nixfmt.width = 100;
hooks = {
nixfmt.enable = true;
nixfmt = {
enable = true;
settings.width = 100;
};
rustfmt.enable = true;
update-readme = {
enable = true;
Expand Down

0 comments on commit 1ad5645

Please sign in to comment.