diff --git a/nix/base-system/darwin-configuration.nix b/nix/base-system/darwin-configuration.nix index cd57f83..8b35665 100644 --- a/nix/base-system/darwin-configuration.nix +++ b/nix/base-system/darwin-configuration.nix @@ -165,6 +165,9 @@ services.vector.enable = true; services.vector.settings = { data_dir = "/var/lib/vector"; + api = { + enabled = true; + }; sources = { prometheus = { type = "file"; @@ -197,12 +200,14 @@ }; }; transforms = { - strip_tty = { + durnitisp_no_tty = { type = "remap"; inputs = [ "durnitisp" ]; - source = ".message = strip_ansi_escape_codes(.message)"; + source = '' + .message = strip_ansi_escape_codes(.message) ?? .message + ''; }; }; sinks = { @@ -215,7 +220,7 @@ inputs = [ "prometheus" "heracles" - "durnitisp" + "durnitisp_no_tty" "vector" ]; api_version = "v8"; diff --git a/nix/base-system/flake.lock b/nix/base-system/flake.lock index a37e243..679cb04 100644 --- a/nix/base-system/flake.lock +++ b/nix/base-system/flake.lock @@ -31,11 +31,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1717548187, - "narHash": "sha256-ytVAw4wfAKHPkL39mc9HnyWhS8UF07Lj6FwKWLpAh7k=", + "lastModified": 1717600017, + "narHash": "sha256-T7urgiReULANio3FWc99Umu+3WhAAez9HuZnJv6QPXk=", "owner": "zaphar", "repo": "clio", - "rev": "9c5da58363b2b83ad8fce933996f6131701bbe87", + "rev": "a14ecf4c63a703dc15e5a82b1fd7cdbfe6d8f367", "type": "github" }, "original": {