From e770737241360cdfd09b421eea83160dce02c212 Mon Sep 17 00:00:00 2001 From: Felix Bühler Date: Sun, 2 Jul 2023 19:03:19 +0200 Subject: Update nixos/modules/services/networking/libreswan.nix Co-authored-by: Robert Hensing --- nixos/modules/services/networking/libreswan.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/libreswan.nix b/nixos/modules/services/networking/libreswan.nix index b8a3d6c8fdb..db4d2f7f0ba 100644 --- a/nixos/modules/services/networking/libreswan.nix +++ b/nixos/modules/services/networking/libreswan.nix @@ -14,7 +14,7 @@ let nonchars = filter (x : !(elem x.value chars)) (imap0 (i: v: {ind = i; value = v;}) (stringToCharacters str)); in - lib.optionalString (length nonchars != 0) + lib.optionalString (nonchars != [ ]) (substring (head nonchars).ind (add 1 (sub (last nonchars).ind (head nonchars).ind)) str); indent = str: concatStrings (concatMap (s: [" " (trim [" " "\t"] s) "\n"]) (splitString "\n" str)); configText = indent (toString cfg.configSetup); -- cgit 1.4.1