you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 1 year ago (6 children)

Remember to put

#!/bin/rm

at the top of every file, to teach people not to execute files they shouldn't.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 6 points 1 year ago (5 children)

    Please use "/usr/bin/env [command]". Otherwise, it will not work on NixOS

  • source
  • parent
  • hideshow 5 child comments
  • [+] 2 points 1 year ago (4 children)
  • [–] 3 points 1 year ago (2 children)

    NixOS has rm. But it's not under /bin. There is no /bin in NixOS. The user's programs are inside /run/current-system/sw/bin, and those are symlinks from files hidden in /nix/store.

    Running rm -rf / --no-preserve-root under NixOS, will not nuke the entire system, since /nix/store is mounted as read-only, and only remounted as rw when new applications are downloaded, or older unused ones are wiped.

  • source
  • parent
  • hideshow 2 child comments