For some reason it seems Loki is still trying to setup memberlist, and therefore I get this error no matter what I try:
Oct 02 22:13:04 nixos loki[189084]: no useable address found for interfaces [eth0 en0 lo]
Oct 02 22:13:04 nixos loki[189084]: error initialising module: memberlist-kv
If anybody has had any success setting up something similar, please help me out!
Loki tries to detect ip addresses to run the memberlist on based on a bunch of common interface names. The hard coded interface names it tries to check are eth0, en0 and lo. Since those are not present in a standard NixOS configurion (except lo), you have to tell loki the interface names to look for.
The easiest way to do that is to get the interface names using the nixos option networking.interfaces and set it in the loki configuration:
The local loopback interface lo is present on a standard NixOS machine. I don’t know why loki is unable to detect that.
The minimal loki configuration example contains kvstore.store = "inmemory";. I would have assumed that you don’t need a memberlist at all with this setting. Thus, I’m still unsure why loki tries to start one with the kvstore set to in memory.