dots/modules/hosts/common/linux/nixroutes.nix
Gene Liverman 67458c0ae3
Add nixroutes alias for comparing network routes
Allows easy comparison of current routes with routes in new build
2026-03-11 00:38:26 -04:00

7 lines
358 B
Nix

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