summary refs log tree commit diff
path: root/nixos/modules/services/networking/libreswan.nix
diff options
context:
space:
mode:
authorafranchuk <alex.franchuk@gmail.com>2017-02-09 18:53:44 -0500
committerFranz Pletz <fpletz@fnordicwalking.de>2017-02-10 00:53:44 +0100
commita5e041ac085f8b4d3aec2f68ad8fd3e96becd108 (patch)
treeeb66d0a1787745103df698eb611b85971a37315d /nixos/modules/services/networking/libreswan.nix
parent96d07508bfeab30e6dcbfa082ade1c48892c1411 (diff)
downloadnixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar.gz
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar.bz2
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar.lz
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar.xz
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.tar.zst
nixpkgs-a5e041ac085f8b4d3aec2f68ad8fd3e96becd108.zip
libreswan service: make EnvironmentFile optional (#22591)
Recent versions of libreswan seem to omit this file, but it may be added/changed in the future. It is silly to have the service fail because a file is missing that only enriches the environment.
Diffstat (limited to 'nixos/modules/services/networking/libreswan.nix')
-rw-r--r--nixos/modules/services/networking/libreswan.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/libreswan.nix b/nixos/modules/services/networking/libreswan.nix
index 3866b216f8e..c87e738d2a2 100644
--- a/nixos/modules/services/networking/libreswan.nix
+++ b/nixos/modules/services/networking/libreswan.nix
@@ -102,7 +102,7 @@ in
       serviceConfig = {
         Type = "simple";
         Restart = "always";
-        EnvironmentFile = "${pkgs.libreswan}/etc/sysconfig/pluto";
+        EnvironmentFile = "-${pkgs.libreswan}/etc/sysconfig/pluto";
         ExecStartPre = [
           "${libexec}/addconn --config ${configFile} --checkconfig"
           "${libexec}/_stackmanager start"