Add NixOS to osdetection

Fixes cisofy/lynis#1068.

Signed-off-by: Simon Biewald <simon@fam-biewald.de>
This commit is contained in:
Simon Biewald 2020-11-12 22:56:31 +01:00
parent 183af1d334
commit 3f83b9ac86
1 changed files with 6 additions and 0 deletions

View File

@ -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"