Move some things out of top level which don't need to be there.
Also sort out deps: for lxc-packages, the result of the derivation contains the create and start scripts. These may have wider dependencies than the things they're wrapping. So when you combine them, be careful as to what you actually provide to the pkgs in buildLXC.