From 858b5c67624f8d92660c2e49c2fb5af582b93488 Mon Sep 17 00:00:00 2001
From: jmir1 <joel@miramon.de>
Date: Mon, 14 Oct 2024 22:51:57 +0200
Subject: [PATCH] nixos/ddclient: Fix ip command with usev4 and usev6

---
 nixos/modules/services/networking/ddclient.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index da76ff5153d6..90a3993df686 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -222,7 +222,7 @@ in
       wantedBy = [ "multi-user.target" ];
       after = [ "network.target" ];
       restartTriggers = lib.optional (cfg.configFile != null) cfg.configFile;
-      path = lib.optional (lib.hasPrefix "if," cfg.use) pkgs.iproute2;
+      path = lib.optional (lib.hasPrefix "if," cfg.use || lib.hasPrefix "if," cfg.usev4 || lib.hasPrefix "if," cfg.usev6) pkgs.iproute2;
 
       serviceConfig = {
         DynamicUser = true;