summary refs log tree commit diff
diff options
context:
space:
mode:
authorPiotr Bogdan <ppbogdan@gmail.com>2020-09-08 11:09:04 +0100
committerPiotr Bogdan <ppbogdan@gmail.com>2020-09-08 11:09:04 +0100
commitcb141359bf2d9251441bbcc7e440c4f1f4a32e4f (patch)
treee0a4f876bd51c4ab7f849a4ffab2b5b24f301082
parenta31736120c5de6e632f5a0ba1ed34e53fc1c1b00 (diff)
downloadnixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar.gz
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar.bz2
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar.lz
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar.xz
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.tar.zst
nixpkgs-cb141359bf2d9251441bbcc7e440c4f1f4a32e4f.zip
nixos/openvpn: path now requires conversion to a string
Following changes in https://github.com/NixOS/nixpkgs/pull/91092 the `path` attribute is now a list
instead of being a string. This resulted resulted in the following evaluation error:

"cannot coerce a list to a string, at [...]/nixos/modules/services/networking/openvpn.nix:16:18"

so we now need to convert it to the right type ourselves.

Closes https://github.com/NixOS/nixpkgs/issues/97360.
-rw-r--r--nixos/modules/services/networking/openvpn.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix
index dcd7e9e5fa4..650f9c84ac7 100644
--- a/nixos/modules/services/networking/openvpn.nix
+++ b/nixos/modules/services/networking/openvpn.nix
@@ -11,7 +11,7 @@ let
   makeOpenVPNJob = cfg: name:
     let
 
-      path = (getAttr "openvpn-${name}" config.systemd.services).path;
+      path = makeBinPath (getAttr "openvpn-${name}" config.systemd.services).path;
 
       upScript = ''
         #! /bin/sh