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

View file

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