Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Biewald <simon@fam-biewald.de>2020-11-13 00:56:31 +0300
committerSimon Biewald <simon@fam-biewald.de>2020-11-13 00:56:31 +0300
commit3f83b9ac86e5602dd57457230a1541f8082f25a4 (patch)
treea40792ccdbaa9f7f504fef734209488031d2b178 /include/osdetection
parent183af1d334ee6111f08d1e9d2539d959ef871c2f (diff)
Add NixOS to osdetection
Fixes cisofy/lynis#1068. Signed-off-by: Simon Biewald <simon@fam-biewald.de>
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection6
1 files changed, 6 insertions, 0 deletions
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"