k 3 retiolum: remove lib. for imp part

This commit is contained in:
makefu 2016-07-20 14:24:58 +02:00
parent d35fc9f6d2
commit 2d4b0dc227
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -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}