• fizzle@quokk.au
    link
    fedilink
    English
    arrow-up
    5
    ·
    11 hours ago

    I’ve been a Debian guy for many years and it’s unlikely I’ll move away in the foreseeable future.

    Nix is a package manager and nix-os is an OS built around that package management system.

    You can install nix the package manager in debian. I don’t use it for installing desktop apps like a browser or office suite, I prefer AppImages for those. However, it’s absolutely fantastic for CLI stuff, especially the things you might want as a once off. You can just nix-shell -p <obscure cli tool> and it’s just magically there in a new temporary shell, and then cleaned up once you quit that shell. No more adding weird repos to apt, or downloading from github and building, or piping scripts to bash.

    There’s also home-manager which allows you to define packages and their configurations, and just roll out that state on any machine.

    These fancy package management tools (flatpak, AppImage, and nix) have dramatically changed the Debian experience. I used to be forever struggling with the trade off between stability and old versions of things. That’s really not the case any more because you don’t have to interfere with Debian’s conservative methodical ideology around stability in order to install and use all the shiny new things.

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 hours ago

      You can just nix-shell -p <obscure cli tool> and it’s just magically there in a new temporary shell, and then cleaned up once you quit that shell.

      🤯❤️

      • fizzle@quokk.au
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Yeah so “cleaned up” wasn’t completely true.

        Nix basically works by installing packages in a store or cache, and then soft linking to the binaries in the cache.

        When you exit the temporary shell, the link will no longer exist but the cached package and its dependencies are still there.

        You can easily clear that cache but it’s not gone instantly when you exit the shell.

        • TrickDacy@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          4 hours ago

          That’s actually what I figured/hoped. As long as they’re making an effort to keep that secure, sounds like a good approach to me!

    • Clay_pidgin@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      9 hours ago

      That sounds like a good compromise. I am really enjoying NixOs, but I miss the simplicity of Debian. I’ll think about your method.

      You just installed Nix from APT, I assume, but are you still rebuilding a config.nix every time you make a “permanent” change?

      Agreed on nix-shell -p, that’s extremely handy.