Skip to content

Commit

Permalink
Merge pull request #9 from elythh/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
elythh authored Feb 25, 2024
2 parents 5cd55c7 + 5cf8a2d commit 4930457
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ jobs:
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto lint/format
commit_message: ":art: lint/format"
branch: dev
183 changes: 154 additions & 29 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
nixpkgs-f2k.url = "github:moni-dz/nixpkgs-f2k";
nixpkgs-howdy.url = "github:fufexan/nixpkgs/howdy";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";

nix-colors.url = "github:misterio77/nix-colors";

Expand Down Expand Up @@ -50,6 +51,14 @@
system = "x86_64-linux";
pkgsStable = import nixpkgs-stable { inherit system; };
in {
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
statix.enable = true;
nixfmt.enable = true;
};
};

formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
Expand Down

0 comments on commit 4930457

Please sign in to comment.