better variables
This commit is contained in:
7
loki.nix
7
loki.nix
@@ -1,7 +1,4 @@
|
||||
{ pkgs, userName, ... }:
|
||||
let
|
||||
lokiPort = 3100;
|
||||
in
|
||||
{ pkgs, lokiUser, lokiPort ? (3100), ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [ lokiPort ];
|
||||
|
||||
@@ -12,7 +9,7 @@ in
|
||||
|
||||
services.loki = {
|
||||
enable = true;
|
||||
user = "${userName}";
|
||||
user = "${lokiUser}";
|
||||
|
||||
configuration = {
|
||||
server.http_listen_port = lokiPort;
|
||||
|
||||
Reference in New Issue
Block a user