git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitcb141359bf2d9251441bbcc7e440c4f1f4a32e4f authorPiotr Bogdan <ppbogdan@gmail.com> dateTue 8 Sep 2020, 11:09 (6 years ago) parenta317361
1 file changed+1−1
nixos/modules/services/networking/openvpn.nix+1−1
nixos/modules/services/networking/openvpn.nix+1−1
@@ -11,7 +11,7 @@ let
1111 makeOpenVPNJob = cfg: name:
1212 let
1313
14− path = (getAttr "openvpn-${name}" config.systemd.services).path;
14+ path = makeBinPath (getAttr "openvpn-${name}" config.systemd.services).path;
1515
1616 upScript = ''
1717 #! /bin/sh