19 lines
422 B
Nix
19 lines
422 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
services.loki = {
|
|
enable = true;
|
|
configFile = ./loki.yaml;
|
|
};
|
|
systemd.services.promtail = {
|
|
description = "Promtail service for Loki";
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
serviceConfig = {
|
|
ExecStart = ''
|
|
${pkgs.grafana-loki}/bin/promtail --config.file ${./promtrail.yaml}
|
|
'';
|
|
};
|
|
};
|
|
networking.firewall.interfaces."wg0".allowedTCPPorts = [ 3100 ];
|
|
}
|