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

Also, exclude .pre-commit-config.yaml from SOPS processing
This commit is contained in:
Gene Liverman 2026-03-14 01:04:27 -04:00
parent c1a53997ce
commit f830613ded
No known key found for this signature in database
21 changed files with 42 additions and 39 deletions

View file

@ -1,5 +1,4 @@
{ ... }:
{
_: {
services = {
flatpak = {
enable = true;

View file

@ -1,5 +1,4 @@
{ ... }:
{
_: {
# Select internationalisation properties.
i18n = {
defaultLocale = "en_US.UTF-8";

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'";