Only include ipsecTools if using ipsec
(cherry picked from commit adc368d2fc7dd74beb8486ff72880ed0212abb0d)
This commit is contained in:
parent
39a99c37d2
commit
6526d0e5c3
|
@ -66,9 +66,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
in (mkMerge [{
|
in (mkMerge [{
|
||||||
|
environment.systemPackages = [ cfg.package ];
|
||||||
environment.systemPackages = [ cfg.package pkgs.ipsecTools ];
|
|
||||||
|
|
||||||
boot.kernelModules = [ "tun" "openvswitch" ];
|
boot.kernelModules = [ "tun" "openvswitch" ];
|
||||||
|
|
||||||
boot.extraModulePackages = [ cfg.package ];
|
boot.extraModulePackages = [ cfg.package ];
|
||||||
|
@ -146,6 +144,8 @@ in {
|
||||||
|
|
||||||
}
|
}
|
||||||
(mkIf (cfg.ipsec && (versionOlder cfg.package.version "2.6.0")) {
|
(mkIf (cfg.ipsec && (versionOlder cfg.package.version "2.6.0")) {
|
||||||
|
environment.systemPackages = [ pkgs.ipsecTools ];
|
||||||
|
|
||||||
services.racoon.enable = true;
|
services.racoon.enable = true;
|
||||||
services.racoon.configPath = "${runDir}/ipsec/etc/racoon/racoon.conf";
|
services.racoon.configPath = "${runDir}/ipsec/etc/racoon/racoon.conf";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue