summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Votava <mvnetbiz@gmail.com>2023-03-31 21:54:21 -0700
committerMatt Votava <mvnetbiz@gmail.com>2023-03-31 21:54:21 -0700
commitee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7 (patch)
tree50acf3b40e2ddbf76278b92e85e87d5cc4590f6d
parent0c972f5f0cd58c2281c2c5dcee52afa0d9711aaa (diff)
downloadnixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar.gz
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar.bz2
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar.lz
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar.xz
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.tar.zst
nixpkgs-ee88bac7beb5f5e24ab6202bbeb1a2c7e315c9f7.zip
nixos/ddclient: add iproute2 to unit path if using "if" method
-rw-r--r--nixos/modules/services/networking/ddclient.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/ddclient.nix b/nixos/modules/services/networking/ddclient.nix
index 4d843641f58..5e6f5217c0c 100644
--- a/nixos/modules/services/networking/ddclient.nix
+++ b/nixos/modules/services/networking/ddclient.nix
@@ -218,6 +218,7 @@ with lib;
       wantedBy = [ "multi-user.target" ];
       after = [ "network.target" ];
       restartTriggers = optional (cfg.configFile != null) cfg.configFile;
+      path = lib.optional (lib.hasPrefix "if," cfg.use) pkgs.iproute2;
 
       serviceConfig = {
         DynamicUser = true;