Update nixos/modules/services/networking/libreswan.nix
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
7cc9ced775
commit
e770737241
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue