summary refs log tree commit diff
path: root/nixos/modules/services/networking/wireguard.nix
diff options
context:
space:
mode:
authorJoerg Thalheim <joerg@thalheim.io>2017-09-25 20:39:37 +0100
committerJoerg Thalheim <joerg@thalheim.io>2017-09-25 20:42:03 +0100
commit194c4002b640b8f4023c05ecb6e932006bbea829 (patch)
tree04910b00a2962431f0f8990561bb95f0344c551c /nixos/modules/services/networking/wireguard.nix
parent74c3cdd893dd8d22875e713cde8bc0c12162787d (diff)
downloadnixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.gz
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.bz2
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.lz
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.xz
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.tar.zst
nixpkgs-194c4002b640b8f4023c05ecb6e932006bbea829.zip
wireguard: fix function for adding routes
Diffstat (limited to 'nixos/modules/services/networking/wireguard.nix')
-rw-r--r--nixos/modules/services/networking/wireguard.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/wireguard.nix b/nixos/modules/services/networking/wireguard.nix
index 27ca0bcc574..eb08e7f90c0 100644
--- a/nixos/modules/services/networking/wireguard.nix
+++ b/nixos/modules/services/networking/wireguard.nix
@@ -225,7 +225,7 @@ let
 
             "${ipCommand} link set up dev ${name}"
 
-            (lib.optional (values.allowedIPsAsRoutes != false) (map (peer:
+            (optionals (values.allowedIPsAsRoutes != false) (map (peer:
             (map (allowedIP:
             "${ipCommand} route replace ${allowedIP} dev ${name} table ${values.table}"
             ) peer.allowedIPs)