diff options
author | makefu <github@syntax-fehler.de> | 2017-10-07 11:08:13 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-10-07 11:08:13 +0200 |
commit | 8290c6507e500c1899f4a7d1184ef5b24c8132cb (patch) | |
tree | 91d64e1cc20647acce06f7f28da46b58e5dd2571 /krebs/3modules/tinc.nix | |
parent | 52f9105027a7c2d70145d7d2db69452e148b2158 (diff) | |
parent | a8db051451d2827d7c7ad38f005284013e63c039 (diff) |
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'krebs/3modules/tinc.nix')
-rw-r--r-- | krebs/3modules/tinc.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix index 8af15c13b..b032f3148 100644 --- a/krebs/3modules/tinc.nix +++ b/krebs/3modules/tinc.nix @@ -1,5 +1,5 @@ -{ config, pkgs, lib, ... }: with import <stockholm/lib>; +{ config, pkgs, ... }: let out = { options.krebs.tinc = api; @@ -11,7 +11,7 @@ let description = '' define a tinc network ''; - type = with types; attrsOf (submodule (tinc: { + type = types.attrsOf (types.submodule (tinc: { options = let netname = tinc.config._module.args.name; in { @@ -116,7 +116,7 @@ let phases = [ "installPhase" ]; installPhase = '' mkdir $out - ${concatStrings (lib.mapAttrsToList (_: host: '' + ${concatStrings (mapAttrsToList (_: host: '' echo ${shell.escape host.nets."${tinc.config.netname}".tinc.config} \ > $out/${shell.escape host.name} '') tinc.config.hosts)} |