fix: keep Loki local and prune DO storage

This commit is contained in:
Jet 2026-05-28 15:59:29 -07:00
parent 23e087ae4b
commit 6ac29c1d1a
No known key found for this signature in database
2 changed files with 12 additions and 2 deletions

View file

@ -67,6 +67,7 @@
boot.loader.grub = {
enable = true;
devices = lib.mkForce [ "/dev/vda" ];
configurationLimit = 1;
};
fileSystems."/" = {
@ -182,7 +183,12 @@
nix.gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
options = "--delete-old";
};
nix.optimise = {
automatic = true;
dates = "daily";
};
services.journald.extraConfig = ''

View file

@ -751,12 +751,16 @@ in
common = {
path_prefix = "/var/lib/loki";
replication_factor = 1;
ring.kvstore.store = "inmemory";
ring = {
instance_addr = "127.0.0.1";
kvstore.store = "inmemory";
};
storage.filesystem = {
chunks_directory = "/var/lib/loki/chunks";
rules_directory = "/var/lib/loki/rules";
};
};
frontend.address = "127.0.0.1";
schema_config.configs = [
{
from = "2024-01-01";