From 3f83b9ac86e5602dd57457230a1541f8082f25a4 Mon Sep 17 00:00:00 2001 From: Simon Biewald Date: Thu, 12 Nov 2020 22:56:31 +0100 Subject: Add NixOS to osdetection Fixes cisofy/lynis#1068. Signed-off-by: Simon Biewald --- include/osdetection | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/osdetection') diff --git a/include/osdetection b/include/osdetection index 925beec2..26a95570 100644 --- a/include/osdetection +++ b/include/osdetection @@ -235,6 +235,12 @@ OS_NAME="Manjaro" OS_VERSION="Rolling release" ;; + "nixos") + LINUX_VERSION="NixOS" + OS_NAME="NixOS" + OS_VERSION=$(grep "^VERSION_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + OS_VERSION_FULL=$(grep "^VERSION=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') + ;; "ol") LINUX_VERSION="Oracle Linux" OS_NAME="Oracle Linux" -- cgit v1.2.3