Add code-server, various cleanups

This commit is contained in:
2023-04-19 10:48:16 +02:00
parent 34cbe2f460
commit f14628114e
4 changed files with 28 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
let
cfg = config.services.loki;
saveDirectory = "/tank/var/lib/loki";
in {
services.loki = {
enable = true;
@@ -16,7 +16,7 @@ in {
ingester = {
wal = {
enabled = true;
dir = "/var/lib/loki/wal";
dir = "${saveDirectory}/wal";
};
lifecycler = {
address = "127.0.0.1";
@@ -48,13 +48,13 @@ in {
storage_config = {
boltdb_shipper = {
active_index_directory = "/var/lib/loki/boltdb-shipper-index";
cache_location = "/var/lib/loki/boltdb-shipper-cache";
active_index_directory = "${saveDirectory}/boltdb-shipper-index";
cache_location = "${saveDirectory}/boltdb-shipper-cache";
shared_store = "filesystem";
cache_ttl = "24h";
};
filesystem = {
directory = "/var/lib/loki/chunks";
directory = "${saveDirectory}/chunks";
};
};
@@ -65,7 +65,7 @@ in {
};
compactor = {
working_directory = "/var/lib/loki/compactor";
working_directory = "${saveDirectory}/compactor";
shared_store = "filesystem";
};
};