From 6ac29c1d1ad36fe6323343a351d32f74494a5eea Mon Sep 17 00:00:00 2001 From: Jet Date: Thu, 28 May 2026 15:59:29 -0700 Subject: [PATCH] fix: keep Loki local and prune DO storage --- hosts/noisebell-do/configuration.nix | 8 +++++++- hosts/noisebell-do/observability.nix | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/noisebell-do/configuration.nix b/hosts/noisebell-do/configuration.nix index 37c4bb3..43a3aa2 100644 --- a/hosts/noisebell-do/configuration.nix +++ b/hosts/noisebell-do/configuration.nix @@ -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 = '' diff --git a/hosts/noisebell-do/observability.nix b/hosts/noisebell-do/observability.nix index c529566..7b27a5d 100644 --- a/hosts/noisebell-do/observability.nix +++ b/hosts/noisebell-do/observability.nix @@ -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";