ngi-nix / universal-resolver

WIP flake for https://github.com/decentralized-identity/universal-resolver/. [maintainer=@humancalico]
0 stars 0 forks source link

initial working flake #1

Open akshatagarwl opened 3 years ago

akshatagarwl commented 3 years ago
oppiliappan commented 3 years ago

Also a question: I have no idea what the standard way of packaging web servers in Nix is. Is it just a single binary that we would run? Services/Modules (don't even know what they are) or something else. So I would love to hear some thoughts/opinions on this as well

Yes ideally you would make a Nixos module. With flakes, you can provide a module as an output as well. For example, a Nixos user would enable a mysql server like so:

# within /etc/nixos/configuration.nix
services.mysql = {
    enable = true;
};

The next nixos-rebuild-switch will bring the service up.

While I don't know too much about this package, I'd assume we can start with a simple module that just runs the package as a systemd service. We can layer on configuration options etc. later. The wiki is a good reference to start with.