Phase1: Git hooks implementation (statix, deadnix, nix flake check, all hosts)
This commit is contained in:
@@ -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 @@
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user