summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix Bühler <Stunkymonkey@users.noreply.github.com>2023-07-02 19:03:19 +0200
committerGitHub <noreply@github.com>2023-07-02 19:03:19 +0200
commite770737241360cdfd09b421eea83160dce02c212 (patch)
treebe0bbd52ff44a3de832ec8b149b472511d39bec8
parent7cc9ced775f83af14c97a9cccc5ad0dee1f33299 (diff)
downloadnixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar.gz
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar.bz2
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar.lz
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar.xz
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.tar.zst
nixpkgs-e770737241360cdfd09b421eea83160dce02c212.zip
Update nixos/modules/services/networking/libreswan.nix
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
-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 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);