From cb141359bf2d9251441bbcc7e440c4f1f4a32e4f Mon Sep 17 00:00:00 2001 From: Piotr Bogdan Date: Tue, 8 Sep 2020 11:09:04 +0100 Subject: [PATCH] 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. --- nixos/modules/services/networking/openvpn.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/openvpn.nix b/nixos/modules/services/networking/openvpn.nix index dcd7e9e5fa4c..650f9c84ac72 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