feat(git): add .gitignore and pre-commit config to gitignore

This commit is contained in:
Mohammad Rafiq 2025-07-07 00:33:05 +08:00
parent 52322afe1c
commit 72f9fad9eb
No known key found for this signature in database
3 changed files with 16 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# gitignore
.pre-commit-config.*

13
nix/files/gitignore.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, ... }:
{
perSystem =
{ pkgs, ... }:
{
files.files = [
{
path_ = ".gitignore";
drv = pkgs.writeText ".gitignore" config.text.gitignore;
}
];
};
}

View file

@ -1,6 +1,7 @@
{ inputs, ... }:
{
imports = [ inputs.git-hooks.flakeModule ];
text.gitignore = ".pre-commit-config.*";
perSystem = psArgs: {
pre-commit.settings.hooks = {
# Nix Linters