feat(git): add .gitignore and pre-commit config to gitignore
This commit is contained in:
parent
52322afe1c
commit
72f9fad9eb
3 changed files with 16 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# gitignore
|
||||
.pre-commit-config.*
|
13
nix/files/gitignore.nix
Normal file
13
nix/files/gitignore.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
files.files = [
|
||||
{
|
||||
path_ = ".gitignore";
|
||||
drv = pkgs.writeText ".gitignore" config.text.gitignore;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.git-hooks.flakeModule ];
|
||||
text.gitignore = ".pre-commit-config.*";
|
||||
perSystem = psArgs: {
|
||||
pre-commit.settings.hooks = {
|
||||
# Nix Linters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue