Closed danielfullmer closed 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
$(nixos-version > /dev/null 2>&1)
/etc/NIXOS
This was the cause of my issues in the later comments in https://github.com/SimulaVR/Simula/issues/108
$(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#L135This was the cause of my issues in the later comments in https://github.com/SimulaVR/Simula/issues/108