From 67458c0ae30945537e9fffbcb3685de13c72a0a2 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Wed, 11 Mar 2026 00:38:26 -0400 Subject: [PATCH] Add nixroutes alias for comparing network routes Allows easy comparison of current routes with routes in new build --- modules/hosts/common/linux/nixroutes.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 modules/hosts/common/linux/nixroutes.nix diff --git a/modules/hosts/common/linux/nixroutes.nix b/modules/hosts/common/linux/nixroutes.nix new file mode 100644 index 0000000..0b50bdf --- /dev/null +++ b/modules/hosts/common/linux/nixroutes.nix @@ -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'"; +}