chore: rebuild devenv
This commit is contained in:
parent
7e8901c7bf
commit
a9a6888958
4 changed files with 17 additions and 29 deletions
2
.envrc
2
.envrc
|
@ -2,4 +2,6 @@ export DIRENV_WARN_TIMEOUT=20s
|
|||
|
||||
eval "$(devenv direnvrc)"
|
||||
|
||||
# The use_devenv function supports passing flags to the devenv command
|
||||
# For example: use devenv --impure --option services.postgres.enable:bool true
|
||||
use devenv
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -9,3 +9,6 @@ devenv.local.nix
|
|||
|
||||
# direnv
|
||||
.direnv
|
||||
|
||||
# pre-commit
|
||||
.pre-commit-config.yaml
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
# See https://pre-commit.com for more information
|
||||
# See https://pre-commit.com/hooks.html for more hooks
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: detect-private-key
|
||||
- id: mixed-line-ending
|
||||
|
||||
- repo: https://github.com/commitizen-tools/commitizen
|
||||
rev: v3.27.0
|
||||
hooks:
|
||||
- id: commitizen
|
||||
stages: [commit-msg]
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: home-manager-check
|
||||
name: Home Manager Config Check
|
||||
entry: home-manager switch --dry-run
|
||||
language: system
|
||||
pass_filenames: false
|
||||
exclude: ^docs/
|
14
devenv.nix
14
devenv.nix
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
git-hooks.hooks = {
|
||||
git-hooks = {
|
||||
hooks = {
|
||||
check-case-conflicts.enable = true;
|
||||
check-merge-conflicts.enable = true;
|
||||
commitizen.enable = true;
|
||||
|
@ -10,4 +11,13 @@
|
|||
markdownlint.enable = true;
|
||||
mdformat.enable = true;
|
||||
};
|
||||
|
||||
hooks.home-manager-check = {
|
||||
enable = true;
|
||||
name = "Home Manager Config Check";
|
||||
entry = "home-manager switch --dry-run";
|
||||
pass_filenames = false;
|
||||
excludes = [ "^docs/" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue