From 7b87a185a84f7b3ebfc56e37a1bce6fe92efd6f7 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Wed, 20 Nov 2024 20:06:59 -0800 Subject: [PATCH] nixos/clatd: use `clat-dev` if it exists in settings Otherwise, fallback to the default interface name `clat`. --- nixos/modules/services/networking/clatd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/clatd.nix b/nixos/modules/services/networking/clatd.nix index f58a1ca4f8a6..8c7f8e76feff 100644 --- a/nixos/modules/services/networking/clatd.nix +++ b/nixos/modules/services/networking/clatd.nix @@ -86,7 +86,7 @@ in type = "basic"; # https://github.com/toreanderson/clatd/blob/master/scripts/clatd.networkmanager source = pkgs.writeShellScript "restart-clatd" '' - [ "$DEVICE_IFACE" = "clat" ] && exit 0 + [ "$DEVICE_IFACE" = "${cfg.settings.clat-dev or "clat"}" ] && exit 0 [ "$2" != "up" ] && [ "$2" != "down" ] && exit 0 ${pkgs.systemd}/bin/systemctl restart clatd.service '';