networkmanager-fortisslvpn: create the local state directory

Otherwise connecting simply fails:
VPN connection: failed to connect: 'La création du fichier « /tmp/lib/NetworkManager-fortisslvpn/0507e3ef-f0e0-4153-af64-b3d9a025877c.config.XSB19Z » a échoué : No such file or directory'
This commit is contained in:
Symphorien Gibol 2019-10-17 12:00:00 +00:00 committed by worldofpeace
parent b54d23a3c0
commit a37b9636f7
2 changed files with 6 additions and 1 deletions

View File

@ -472,6 +472,7 @@ in {
systemd.tmpfiles.rules = [
"d /etc/NetworkManager/system-connections 0700 root root -"
"d /etc/ipsec.d 0700 root root -"
"d /var/lib/NetworkManager-fortisslvpn 0700 root root -"
"d /var/lib/dhclient 0755 root root -"
"d /var/lib/misc 0755 root root -" # for dnsmasq.leases

View File

@ -32,10 +32,14 @@ in stdenv.mkDerivation {
configureFlags = [
"--without-libnm-glib"
"--with-gnome=${if withGnome then "yes" else "no"}"
"--localstatedir=/tmp"
"--localstatedir=/var"
"--enable-absolute-paths"
];
# the installer only create an empty directory in localstatedir, so
# we can drop it
installFlags = [ "localstatedir=." ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;