Add nixroutes alias for comparing network routes

Allows easy comparison of current routes with routes in new build
This commit is contained in:
Gene Liverman 2026-03-11 00:38:26 -04:00
parent 1f9db8cb1f
commit 67458c0ae3
No known key found for this signature in database

View file

@ -0,0 +1,7 @@
{ config, lib, ... }:
let
hostName = 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'";
}