title: How can I reset my nix environment to the original user profile?
body: <p>I believe I ran <code>nix-env -if example.nix</code> which changed my nix environment. </p>
  
  <p>How can I undo this action?</p>
  
  <p>I'm trying to run a application that is specified in my nixos config (<code>/etc/nixos/*</code>), however it no longer seems available (within the <code>$PATH</code>).</p>
  
  <hr>
  
  <p>Seems it might be <code>nix-env --switch-profile /nix/var/nix/profiles/default</code> (according to <a href="https://nixos.org/nix/manual/#sec-profiles" rel="noreferrer">https://nixos.org/nix/manual/#sec-profiles</a>) ?</p>