# Detect that bash script is running under NixOS

**URL:** https://discourse.nixos.org/t/detect-that-bash-script-is-running-under-nixos/11402
**Category:** Help
**Created:** [February 5, 2021, 7:39am UTC](https://discourse.nixos.org/t/detect-that-bash-script-is-running-under-nixos/11402 "2021-02-05T07:39:29Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![peterhoeg](https://discourse.nixos.org/user_avatar/discourse.nixos.org/peterhoeg/32/137_2.png) [@peterhoeg](https://discourse.nixos.org/u/peterhoeg)
#### Post date: [February 13, 2024, 8:30pm UTC](https://discourse.nixos.org/t/detect-that-bash-script-is-running-under-nixos/11402/6 "2024-02-13T20:30:27Z")

</div>

Because that’s not a NixOS image. It’s the nix package manager.

---

_[View the full topic](https://discourse.nixos.org/t/detect-that-bash-script-is-running-under-nixos/11402)._
