SimulaVR / Simula

Linux VR Desktop
MIT License
2.94k stars 87 forks source link

Fix NixOS detection in DriverCheck.sh #110

Closed danielfullmer closed 4 years ago

danielfullmer commented 4 years ago

$(nixos-version > /dev/null 2>&1) will always be empty. A better way to check if we are running on nixos is just to look for the /etc/NIXOS file, which is created during nixos installation: https://github.com/NixOS/nixpkgs/blob/7e07846d99bed4bd7272b1626038e77a78aa36f6/nixos/modules/installer/tools/nixos-install.sh#L135

This was the cause of my issues in the later comments in https://github.com/SimulaVR/Simula/issues/108