libmain: show presence of NixOS and home-manager utilities in version output

This commit is contained in:
Max Headroom 2023-01-13 02:37:59 +01:00
parent f9717a9141
commit ce1a531c5a

View file

@ -354,6 +354,8 @@ void printVersion(const std::string & programName)
cfg.push_back("gc");
#endif
cfg.push_back("signed-caches");
cfg.push_back("nixos");
cfg.push_back("home");
std::cout << "System type: " << settings.thisSystem << "\n";
std::cout << "Additional system types: " << concatStringsSep(", ", settings.extraPlatforms.get()) << "\n";
std::cout << "Features: " << concatStringsSep(", ", cfg) << "\n";