diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-05-27 17:58:53 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-05-27 17:58:53 +0200 |
commit | 481173c1ae8bd00f3759be25bb6014b996af9ddd (patch) | |
tree | 0768f20913fcb60327ff1d652febbd2d6ff7aeba /modules/apps/strongswan | |
parent | ae30c173eddd217144d6cb1db4c272261c09ba68 (diff) | |
download | nixsap-481173c1ae8bd00f3759be25bb6014b996af9ddd.tar.gz |
Clean imports (and spaces)
Diffstat (limited to 'modules/apps/strongswan')
-rw-r--r-- | modules/apps/strongswan/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/apps/strongswan/default.nix b/modules/apps/strongswan/default.nix index ca95464..b81fdd9 100644 --- a/modules/apps/strongswan/default.nix +++ b/modules/apps/strongswan/default.nix @@ -5,7 +5,7 @@ let inherit (lib) mkIf mkOption types filterAttrs hasPrefix mapAttrsToList concatStringsSep concatMapStringsSep; inherit (types) listOf submodule path attrsOf; - inherit (builtins) toString toFile isList isBool; + inherit (builtins) toFile isList isBool; cfg = config.nixsap.apps.strongswan; explicit = filterAttrs (n: v: n != "_module" && v != null); @@ -30,9 +30,9 @@ let )) ) (explicit sections) ); - setupSec = makeSections "config" { inherit (cfg) setup; }; - caSec = makeSections "ca" cfg.ca; - connSec = makeSections "conn" cfg.conn; + setupSec = makeSections "config" { inherit (cfg) setup; }; + caSec = makeSections "ca" cfg.ca; + connSec = makeSections "conn" cfg.conn; in toFile "ipsec.conf" '' ${setupSec} ${caSec} |