Hello, does anyone know about how to run a kbin instance on NixOS? Will the steps on https://codeberg.org/Kbin/kbin-core/wiki#admin-guide (but replacing the apt installs with adding packages in configuration.nix) just work, or is there a better, more reproducible way?

Thanks.

EDIT: I meant a kbin instance, not lemmy.

  • @baduhai
    link
    11 year ago

    You’ll probably want to write a derivation for kbin, then write a nixos module that configures a systemd service to manage kbin as a system service.

  • @eneff@discuss.tchncs.de
    link
    fedilink
    English
    1
    edit-2
    1 year ago

    Lemmy is packaged already, and you can find configuration options here.

    kbin is not packaged yet, thus there are no configuration options for it.

    There currently is an open issue requesting it to be packaged here.

  • Atemu
    link
    fedilink
    11 year ago

    Will the steps on https://codeberg.org/Kbin/kbin-core/wiki#admin-guide (but replacing the apt installs with adding packages in configuration.nix) just work

    No, they will not. It’s not about having packages available, it’s about packaging it properly and configuring the system to accommodate it.

    or is there a better, more reproducible way?

    First you’ll need to package kbin. This might actually be rather trivial since php does not involve a real build process AFAIK? See other PHP packages for inspiration.

    Next you need to set up a module that internally declares a service and configures other services such as Redis or Nginx accordingly. Again, see other PHP modules for reference.


    An alternative would be to use Docker/OCI containers to run kbin.