summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-06-25 15:01:56 +0200
committerGitHub <noreply@github.com>2018-06-25 15:01:56 +0200
commit7e77094f39d3ccf6f1c769be8e52893a449fbb9e (patch)
tree3e479091f7202f44c00a080a257045e52bff9511 /nixos
parent39f357a83649d742dbde23558cda0fdb09d3c306 (diff)
parent401370287a9b74fc18539fe9c0bdc7ac9df9cf22 (diff)
downloadnixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar.gz
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar.bz2
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar.lz
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar.xz
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.tar.zst
nixpkgs-7e77094f39d3ccf6f1c769be8e52893a449fbb9e.zip
Merge pull request #42518 from LumiGuide/strongswan-swanctl-5.6.3
strongswan-swanctl: adapt options to strongswan-5.6.3
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix
index ad211f41eef..e6561633264 100644
--- a/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix
+++ b/nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nix
@@ -938,9 +938,12 @@ in {
         protection.
       '';
 
-      hw_offload = mkYesNoParam no ''
+      hw_offload = mkEnumParam ["yes" "no" "auto"] "no" ''
         Enable hardware offload for this CHILD_SA, if supported by the IPsec
-        implementation.
+        implementation. The value <literal>yes</literal> enforces offloading
+        and the installation will fail if it's not supported by either kernel or
+        device. The value <literal>auto<literal> enables offloading, if it's
+        supported, but the installation does not fail otherwise.
       '';
 
       start_action = mkEnumParam ["none" "trap" "start"] "none" ''