Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
nixos/openvpn: path now requires conversion to a string
Browse files Browse the repository at this point in the history
Following changes in NixOS/nixpkgs#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 NixOS/nixpkgs#97360.
  • Loading branch information
pbogdan committed Sep 8, 2020
1 parent a317361 commit cb14135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/openvpn.nix
Expand Up @@ -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
Expand Down

0 comments on commit cb14135

Please sign in to comment.