Anyone with experience using NixOS to create a Lemmy instance, please share any caveats and troubleshooting tips you have.

  • ericjmorey@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Is this sort of lag the nature of package managers that will inherently be part of NixOS and nixpk?

    • neoney@lemmy.neoney.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      While we were talking I updated lemmy-server using overrideAttrs for my own use. It’s honestly not that hard. You change the commit, specify some random incorrect hashes, build it, nix screams at you that the hash is incorrect (and generously provides the correct one), put the correct hash, and build again. Done.

        • neoney@lemmy.neoney.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          The hash isn’t there for security, it’s to make sure the code you’re building against doesn’t randomly change which could make the derivation fail to compile. For example, for the source, you can specify a literal HTTP download from a URL, and that file could be changed by the host at any given time, so it’s there as a safeguard.