2019-12-11 15:45:44 +01:00
|
|
|
diff --git a/lib/include/guest_os.h b/lib/include/guest_os.h
|
|
|
|
index 868dec68..0b9a2ad7 100644
|
2016-12-01 15:59:53 +01:00
|
|
|
--- a/lib/include/guest_os.h
|
|
|
|
+++ b/lib/include/guest_os.h
|
2019-12-11 15:45:44 +01:00
|
|
|
@@ -278,6 +278,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
|
2015-08-21 19:29:09 +02:00
|
|
|
#define STR_OS_MANDRAKE_FULL "Mandrake Linux"
|
|
|
|
#define STR_OS_MANDRIVA "mandriva"
|
|
|
|
#define STR_OS_MKLINUX "MkLinux"
|
|
|
|
+#define STR_OS_NIXOS "NixOS"
|
|
|
|
#define STR_OS_NOVELL "nld9"
|
|
|
|
#define STR_OS_NOVELL_FULL "Novell Linux Desktop 9"
|
2016-12-01 15:59:53 +01:00
|
|
|
#define STR_OS_ORACLE6 "oraclelinux6"
|
2019-12-11 15:45:44 +01:00
|
|
|
diff --git a/lib/misc/hostinfoPosix.c b/lib/misc/hostinfoPosix.c
|
|
|
|
index 348a67ec..5f8beb2b 100644
|
2016-12-01 15:59:53 +01:00
|
|
|
--- a/lib/misc/hostinfoPosix.c
|
|
|
|
+++ b/lib/misc/hostinfoPosix.c
|
2019-12-11 15:45:44 +01:00
|
|
|
@@ -203,6 +203,7 @@ static const DistroInfo distroArray[] = {
|
|
|
|
{ "Mandrake", "/etc/mandrake-release" },
|
|
|
|
{ "Mandriva", "/etc/mandriva-release" },
|
|
|
|
{ "MkLinux", "/etc/mklinux-release" },
|
|
|
|
+ { "NixOS", "/etc/os-release" },
|
|
|
|
{ "Novell", "/etc/nld-release" },
|
|
|
|
{ "OracleLinux", "/etc/oracle-release" },
|
|
|
|
{ "Photon", "/etc/lsb-release" },
|
|
|
|
@@ -865,6 +866,8 @@ HostinfoGetOSShortName(const char *distro, // IN: full distro name
|
2016-12-01 15:59:53 +01:00
|
|
|
}
|
|
|
|
} else if (strstr(distroLower, "mandrake")) {
|
|
|
|
Str_Strcpy(distroShort, STR_OS_MANDRAKE, distroShortSize);
|
2015-08-21 19:29:09 +02:00
|
|
|
+ } else if (strstr(distroLower, "nixos")) {
|
|
|
|
+ Str_Strcpy(distroShort, STR_OS_NIXOS, distroShortSize);
|
2016-12-01 15:59:53 +01:00
|
|
|
} else if (strstr(distroLower, "turbolinux")) {
|
|
|
|
Str_Strcpy(distroShort, STR_OS_TURBO, distroShortSize);
|
|
|
|
} else if (strstr(distroLower, "sun")) {
|