Skip to content

Commit

Permalink
style: format nix code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dich0tomy committed Nov 30, 2024
1 parent 34a2110 commit 72f81b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
10 changes: 5 additions & 5 deletions nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
overlays = [inputs.neorocks.overlays.default];
};

checks.pre-commit = pkgs.writeShellApplication {
name = "pre-commit-check";
checks.pre-commit = pkgs.writeShellApplication {
name = "pre-commit-check";

runtimeInputs = [pkgs.pre-commit];
runtimeInputs = [pkgs.pre-commit];

text = "pre-commit run --all-files";
};
text = "pre-commit run --all-files";
};

checks.default = pkgs.writeShellApplication {
name = "typos-check";
Expand Down
26 changes: 15 additions & 11 deletions nix/shell.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
{pkgs, lib, ...}: {
{
pkgs,
lib,
...
}: {
devShells.default = pkgs.mkShellNoCC {
shellHook = ''
${lib.getExe pkgs.pre-commit} install
'';
shellHook = ''
${lib.getExe pkgs.pre-commit} install
'';

packages = [
pkgs.lua-language-server
pkgs.luajitPackages.luacheck
pkgs.luarocks
pkgs.luarocks

pkgs.pre-commit
pkgs.ruby
pkgs.stylua
pkgs.typos
pkgs.yamllint
pkgs.actionlint
pkgs.pre-commit
pkgs.ruby
pkgs.stylua
pkgs.typos
pkgs.yamllint
pkgs.actionlint
];
};
}

0 comments on commit 72f81b5

Please sign in to comment.