diff --git a/ops/nixos/bvm-logger/default.nix b/ops/nixos/bvm-logger/default.nix index 53efa2be55..5d4f9cf193 100644 --- a/ops/nixos/bvm-logger/default.nix +++ b/ops/nixos/bvm-logger/default.nix @@ -34,12 +34,14 @@ in { systemd.services.journal2clickhouse = { enable = true; after = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; serviceConfig = { ExecStart = let hosts = lib.concatStringsSep "," (lib.mapAttrsToList (k: v: "${k}=${v.addr}") depot.ops.nixos.scrapeJournalHosts); in "${depot.go.journal2clickhouse}/bin/journal2clickhouse -clickhouse_addr http://localhost:8123 -hosts '${hosts}'"; User = "journal2clickhouse"; + DynamicUser = true; }; };