nixpkgs/modules/system/etc/make-etc.nix
Eelco Dolstra 3c84d56273 * Move the /etc generation to modules/system/etc.
svn path=/nixos/branches/modular-nixos/; revision=15767
2009-05-28 13:17:56 +00:00

13 lines
273 B
Nix

{stdenv, configFiles}:
stdenv.mkDerivation {
name = "etc";
builder = ./make-etc.sh;
/* !!! Use toXML. */
sources = map (x: x.source) configFiles;
targets = map (x: x.target) configFiles;
modes = map (x: if x ? mode then x.mode else "symlink") configFiles;
}