My profiles/default does not exist

Im working on a bash script and I hit bug when I ran it on my Nixos

  • system: "x86_64-linux"
  • host os: Linux 6.1.49, NixOS, 23.11 (Tapir), 23.11pre521245.aa8aa7e2ea35
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.17.0
  • channels(mike): ""
  • channels(root): "home-manager, nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

It said /nix/var/nix/profiles/default does not exist.

When I look in the manual it says that under …profiles there should be a default directory.

Since I am fairly new to nix I don’t know if there is an issue with the manual or my machine, or a maybe…

Could someone enlighten me, please?


Mine is a link
/nix/var/nix/profiles/default →

Thank you. I obviously need to cater for both in my script :slight_smile: