I know that a lot of what Nix does is working around its break from FHS, but I can imagine there are still things that seep through. Are there any unsolvable problems due to this?

I saw on this post that it is possible to use FHS on Nix. Does this solve all potential issues then?

  • Lojcs@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    Either you create an fhs environment by listing the set of derivations to be symlinked into a chroot environment which mimics an FHS.

    Why isn’t this done on the actual system and by default? That would make it fhs compliant, no?

    • hallettj@beehaw.org
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 months ago

      If you put an FHS on the actual system you wouldn’t be able to install multiple versions of the same package, updates wouldn’t be atomic - you wouldn’t get the big selling points of Nix.

    • palebluethought@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      8 months ago

      If your system uses 3 different Pythons as dependencies of different packages, which one gets to be /usr/bin/python?

      • Lojcs@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        The most recent one by default unless another is manually chosen. The nix packages can keep using their specific versions directly

        • palebluethought@lemmy.world
          link
          fedilink
          English
          arrow-up
          8
          ·
          edit-2
          8 months ago

          Now you’ll have a zillion users trying to install software in ways that violate all the assumptions that NixOS operates on, but which are still tightly coupled to your NixOS config. Now updates to your system, or even seemingly unrelated config changes (through some transitive dependency chain) can easily break that software.

          So now we’ve basically removed half the advantages that motivate Nix/OS in the first place, and when stuff breaks it will look like it’s Nix’s fault, even if it isn’t.

          On the other hand, nixpkgs is already the most comprehensive repository of system software out there, and for 99% of packages Nixifying it is pretty trivial. Hell, my NixOS config does that for 3 different GitHub repos right inline in my config.nix