Add pre-commit hooks for nixfmt, deadnix, and statix

Also, exclude .pre-commit-config.yaml from the SOPS differ
This commit is contained in:
Gene Liverman 2026-03-14 01:04:27 -04:00
parent c1a53997ce
commit 0dea1aab28
No known key found for this signature in database
23 changed files with 50 additions and 41 deletions

View file

@ -1,6 +1,6 @@
{ config, lib, ... }:
let
hostName = config.networking.hostName;
inherit (config.networking) hostName;
in
{
programs.zsh.shellAliases.nixroutes = "cd ~/repos/dots && echo '=== Current Routes ===' && ip route show && ip -6 route show && echo '' && echo '=== New Build Routes ===' && nix eval --json '.#nixosConfigurations.${hostName}.config.systemd.network.networks.\"10-wan\".routes'";