nix conversion of the build system

conversion is up to core for linux and nova on x86_64