From c0167bd5d188af037d35f9f31c1591bc2f17b2a0 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Thu, 3 Oct 2024 23:04:17 +0200 Subject: [PATCH] updated README --- .hooks/pre-commit | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 4d465c4..524d4e5 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -2,13 +2,14 @@ git stash -q --keep-index - +echo "checking flakes all compile" nix flake check -if [ $? -eq 0 ]; then +if [ ! $? -eq 0 ]; then exit 1 fi +echo "running linter" ./lint.sh RESULT=$? diff --git a/README.md b/README.md index 4f1e59b..f639b53 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ - This person seams to know what they are doing with home manager https://github.com/arvigeus/nixos-config/ ## Configuration -set up git configuration for local development: `git config --local include.path .gitconfig` +set up git configuration for local development: `git config core.hooksPath .hooks` to update passwords run: `nix shell nixpkgs#sops -c sops secrets/user-passwords.yaml` (NOTE: this depends on the SOPS_AGE_KEY_DIRECTORY environment variable being set)