this post was submitted on 16 Jun 2023
6 points (100.0% liked)

nixos

1271 readers
3 users here now

All about NixOS - https://nixos.org/

founded 4 years ago
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

I just saw that you're asking for kbin, not lemmy. The steps probably wouldn't work as-is, and the "correct" way is to create a NixOS module for kbin. Some of the configuration steps (e.g. creating the kbin service user, configuring PHP, configuring Nginx, configuring Let's Encrypt etc.) are supported by NixOS modules in nixpkgs. It's also necessary to package kbin itself, and to create systemd services to run it.

Creating a module requires effort, though, and I'd rather use a container to deploy it for simplicity, if it were me.