1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +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; cfg = config.networking.vpnc;
mkServiceDef = name: value: mkServiceDef = name: value:
{ {
source = builtins.toFile "${name}.conf" value; name = "vpnc/${name}.conf";
target = "vpnc/${name}.conf"; value = { text = value; };
}; };
in in
@ -35,7 +35,7 @@ in
}; };
}; };
config.environment.etc = mapAttrsToList mkServiceDef cfg.services; config.environment.etc = mapAttrs' mkServiceDef cfg.services;
} }