From 4fd1b5f08b4fa8e880fb432acab8caeb9ceaa105 Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Wed, 13 Sep 2023 18:01:50 +0100
Subject: [PATCH] er, "input" != output"

---
 modules/network/route.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/network/route.nix b/modules/network/route.nix
index 25c817af..0c933137 100644
--- a/modules/network/route.nix
+++ b/modules/network/route.nix
@@ -7,7 +7,7 @@
 { target, via, interface ? null, metric }:
 let
   inherit (liminix.services) oneshot;
-  with_dev = if interface != null then "dev $(input ${interface} ifname)" else "";
+  with_dev = if interface != null then "dev $(output ${interface} ifname)" else "";
 in oneshot {
   name = "route-${target}-${builtins.substring 0 12 (builtins.hashString "sha256" "${via}-${if interface!=null then interface.name else ""}")}";
   up = ''