1diff --git a/lib/include/guest_os.h b/open-vm-tools/lib/include/guest_os.h
2index ef202e3..c7a105d 100644
3--- a/lib/include/guest_os.h
4+++ b/lib/include/guest_os.h
5@@ -238,6 +238,7 @@ Bool Gos_InSetArray(uint32 gos, const uint32 *set);
6 #define STR_OS_MANDRAKE_FULL "Mandrake Linux"
7 #define STR_OS_MANDRIVA "mandriva"
8 #define STR_OS_MKLINUX "MkLinux"
9+#define STR_OS_NIXOS "NixOS"
10 #define STR_OS_NOVELL "nld9"
11 #define STR_OS_NOVELL_FULL "Novell Linux Desktop 9"
12 #define STR_OS_ORACLE6 "oraclelinux6"
13diff --git a/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c
14index 0f55070..2d8467c 100644
15--- a/lib/misc/hostinfoPosix.c
16+++ b/lib/misc/hostinfoPosix.c
17@@ -195,6 +195,7 @@ static const DistroInfo distroArray[] = {
18 {"Mandrake", "/etc/mandrake-release"},
19 {"Mandriva", "/etc/mandriva-release"},
20 {"MkLinux", "/etc/mklinux-release"},
21+ {"NixOS", "/etc/os-release"},
22 {"Novell", "/etc/nld-release"},
23 {"OracleLinux", "/etc/oracle-release"},
24 {"Photon", "/etc/lsb-release"},
25@@ -554,6 +555,8 @@ HostinfoGetOSShortName(char *distro, // IN: full distro name
26 }
27 } else if (strstr(distroLower, "mandrake")) {
28 Str_Strcpy(distroShort, STR_OS_MANDRAKE, distroShortSize);
29+ } else if (strstr(distroLower, "nixos")) {
30+ Str_Strcpy(distroShort, STR_OS_NIXOS, distroShortSize);
31 } else if (strstr(distroLower, "turbolinux")) {
32 Str_Strcpy(distroShort, STR_OS_TURBO, distroShortSize);
33 } else if (strstr(distroLower, "sun")) {