summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-06-06 01:35:18 +0200
committerGitHub <noreply@github.com>2021-06-06 01:35:18 +0200
commit6e2204ea3257fe3ed193e85644cbe9f70a6d23a5 (patch)
tree9d9a460f76cbd8ce6656df50189b1284fde8e82f /nixos/modules/virtualisation
parentd641f2d6c6c078ba5f2f1ea2cfcd16578ce4f932 (diff)
parent80830373f08c7affe08b2806bee2f7fc5d85e9fc (diff)
downloadnixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar.gz
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar.bz2
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar.lz
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar.xz
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.tar.zst
nixpkgs-6e2204ea3257fe3ed193e85644cbe9f70a6d23a5.zip
Merge pull request #123364 from edude03/patch-7
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/openvswitch.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/virtualisation/openvswitch.nix b/nixos/modules/virtualisation/openvswitch.nix
index c6a3ceddc3e..ccf32641df6 100644
--- a/nixos/modules/virtualisation/openvswitch.nix
+++ b/nixos/modules/virtualisation/openvswitch.nix
@@ -66,9 +66,7 @@ in {
     };
 
   in (mkMerge [{
-
-    environment.systemPackages = [ cfg.package pkgs.ipsecTools ];
-
+    environment.systemPackages = [ cfg.package ];
     boot.kernelModules = [ "tun" "openvswitch" ];
 
     boot.extraModulePackages = [ cfg.package ];
@@ -146,6 +144,8 @@ in {
 
   }
   (mkIf (cfg.ipsec && (versionOlder cfg.package.version "2.6.0")) {
+    environment.systemPackages = [ pkgs.ipsecTools ];
+
     services.racoon.enable = true;
     services.racoon.configPath = "${runDir}/ipsec/etc/racoon/racoon.conf";