• 1 Post
  • 88 Comments
Joined 1 year ago
cake
Cake day: September 7th, 2024

help-circle


  • 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.









  • The Nix package manager can be installed on most distros.

    Keep in mind though:

    • GPU accelerated apps will require nixGL, or symlinking Nix’s Mesa to /run/opengl-drivers
    • Debian 12 has an ancient version of nix, and you need to first grab the nix binaries from the 24.11 channel. Newer channels do not support Debian’s nix
    • Fedora may require to disable SELinux. Otherwise it can be a real pain to properly configure nix

  • jim3692@discuss.onlinetolinuxmemes@lemmy.world24.04
    link
    fedilink
    arrow-up
    17
    ·
    2 months ago

    Bedrock Linux requires you to change distro.

    Let me introduce you to distrobox. It containerizes the distro of choice, and allows you to install any software of any distro, without messing any system files.

    Regarding the VPN case though, I haven’t tested it, but I would rather install any kind of proprietary software inside a VM. Steam may be an exception.









  • A kernel update didn’t generate the initramfs

    This sounds like a bug on Nix configuration, or the kernel build process.

    If NixOS had caught the error, you wouldn’t have gotten a faulty generation at all. This is different from pacman/apt/dnf, which will happily continue the upgrade, resulting in a broken system with no easy way to fix it.