chore: rebuild devenv

This commit is contained in:
Michael Mandl 2025-05-13 08:52:38 +02:00
parent 7e8901c7bf
commit a9a6888958
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
4 changed files with 17 additions and 29 deletions

2
.envrc
View file

@ -2,4 +2,6 @@ export DIRENV_WARN_TIMEOUT=20s
eval "$(devenv direnvrc)" 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 use devenv

3
.gitignore vendored
View file

@ -9,3 +9,6 @@ devenv.local.nix
# direnv # direnv
.direnv .direnv
# pre-commit
.pre-commit-config.yaml

View file

@ -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/

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { ... }:
{ {
git-hooks.hooks = { git-hooks = {
hooks = {
check-case-conflicts.enable = true; check-case-conflicts.enable = true;
check-merge-conflicts.enable = true; check-merge-conflicts.enable = true;
commitizen.enable = true; commitizen.enable = true;
@ -10,4 +11,13 @@
markdownlint.enable = true; markdownlint.enable = true;
mdformat.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/" ];
};
};
} }