nix: move spec out of tool and genodeEnv