diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-10-13 16:21:52 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-10-13 16:27:34 +0300 |
commit | b40e89f23632d3fabe95bbf214bb77a32567b3d9 (patch) | |
tree | a76f8222e93152f3886008ad6ef7b6eadbe401ba /modules/apps/strongswan | |
parent | b24ae5d345aa84bdba20efbb4a14ddfc9bf39873 (diff) | |
download | nixsap-b40e89f23632d3fabe95bbf214bb77a32567b3d9.tar.gz |
Do not filter keys at application level
It's done in the nixsap.deployment module
See b24ae5d345aa84bdba20efbb4a14ddfc9bf39873
Diffstat (limited to 'modules/apps/strongswan')
-rw-r--r-- | modules/apps/strongswan/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/apps/strongswan/default.nix b/modules/apps/strongswan/default.nix index d9a5034..ca95464 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) filter toString toFile isList isBool; + inherit (builtins) toString toFile isList isBool; cfg = config.nixsap.apps.strongswan; explicit = filterAttrs (n: v: n != "_module" && v != null); @@ -81,7 +81,7 @@ in { }; config = mkIf ({} != explicit cfg.conn) { - nixsap.deployment.keyrings.root = filter (hasPrefix "/run/keys/") cfg.secrets; + nixsap.deployment.keyrings.root = cfg.secrets; environment.systemPackages = [ pkgs.strongswan ]; systemd.services.strongswan = { description = "strongSwan IPSec Service"; |