{ fetchgit , lib , findutils }: let dotfiles = fetchgit (rec { name = "dotfiles-${rev}"; url = git://git.yggdrasil.li/dotfiles; rev = "d4826b04765ae76c35c215c1ab0a033715820481"; sha256 = "b2bd2005fb3171d742894e2dced80923ce987acbbdfc823d0405003f46b7e2c4"; }); setupUser = name : { inherit name; value = '' cd ${dotfiles} ${findutils}/bin/find . -type d -print0 | ${findutils}/bin/xargs -0 -I '{}' -- mkdir -p "${name}/{}" ${findutils}/bin/find . -type f -print0 | ${findutils}/bin/xargs -0 -I '{}' -- ln -s -f "${dotfiles}/{}" "${name}/{}" ''; }; in names : lib.listToAttrs (builtins.map setupUser names)