Phase1: Git hooks implementation (statix, deadnix, nix flake check, all hosts)

This commit is contained in:
2026-02-05 17:29:17 +01:00
parent e5c8fb3d48
commit 03baf67e79
2 changed files with 44 additions and 81 deletions

View File

@@ -13,18 +13,10 @@
config = lib.mkIf config.services.git-hooks.enable {
system.activationScripts.git-hooks = lib.stringAfter [ "users" ] ''
echo "🪝 Installing git hooks..."
cd /home/h/nix
# Use nix flake check which properly evaluates and installs hooks
nix flake check 2>&1 || true
# Verify hooks were installed
if [ -f ".git/hooks/pre-commit" ]; then
echo " Git hooks installed successfully"
else
echo " Git hooks may not have installed properly"
fi
'';
environment.systemPackages = lib.singleton (
@@ -42,7 +34,3 @@
);
};
}
);
};
}