1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

cleanup per Lethalman's suggestions

This commit is contained in:
Sam Griffin 2014-08-31 13:00:54 -04:00
parent 0667d67c95
commit ec8e4d23f1

View file

@ -6,8 +6,8 @@ let
cfg = config.networking.vpnc;
mkServiceDef = name: value:
{
source = builtins.toFile "${name}.conf" value;
target = "vpnc/${name}.conf";
name = "vpnc/${name}.conf";
value = { text = value; };
};
in
@ -35,7 +35,7 @@ in
};
};
config.environment.etc = mapAttrsToList mkServiceDef cfg.services;
config.environment.etc = mapAttrs' mkServiceDef cfg.services;
}