diff options
author | makefu <github@syntax-fehler.de> | 2016-07-20 14:24:58 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-07-20 14:24:58 +0200 |
commit | 2d4b0dc227b2dc10fa6fe4aa9659391ac1c8c2b4 (patch) | |
tree | 86d5b05e087d66d1a97d3f4909b60b30322724b4 /krebs | |
parent | d35fc9f6d2fac0f9a4b1c26f78860ce9d9afbe6e (diff) |
k 3 retiolum: remove lib. for imp part
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/retiolum.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix index 7bf710dca..326dfa7fb 100644 --- a/krebs/3modules/retiolum.nix +++ b/krebs/3modules/retiolum.nix @@ -126,15 +126,15 @@ let }; imp = { # TODO environment.systemPackages = [ tinc iproute ]; AND avoid conflicts - krebs.secret.files = lib.mapAttrs' (netname: cfg: + krebs.secret.files = mapAttrs' (netname: cfg: nameValuePair "${netname}.rsa_key.priv" cfg.privkey ) config.krebs.tinc; - users.users = lib.mapAttrs' (netname: cfg: + users.users = mapAttrs' (netname: cfg: nameValuePair "${netname}" { inherit (cfg.user) home name uid; createHome = true; } ) config.krebs.tinc; - systemd.services = lib.mapAttrs (netname: cfg: + systemd.services = mapAttrs (netname: cfg: let net = cfg.host.nets.${netname}; @@ -144,7 +144,7 @@ let confDir = let namePathPair = name: path: { inherit name path; }; - in pkgs.linkFarm "${netname}-etc-tinc" (lib.mapAttrsToList namePathPair { + in pkgs.linkFarm "${netname}-etc-tinc" (mapAttrsToList namePathPair { "hosts" = cfg.hostsPackage; "tinc.conf" = pkgs.writeText "${cfg.netname}-tinc.conf" '' Name = ${cfg.host.name} |