1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

chore: format everything

This commit is contained in:
oddlama 2024-11-26 13:34:55 +01:00
parent deca311c68
commit 7ccd7856ee
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
162 changed files with 4750 additions and 3718 deletions

View file

@ -5,9 +5,9 @@
nodes,
globals,
...
}: let
inherit
(lib)
}:
let
inherit (lib)
mkEnableOption
mkIf
mkOption
@ -15,7 +15,8 @@
;
cfg = config.meta.promtail;
in {
in
{
options.meta.promtail = {
enable = mkEnableOption "promtail to push logs to a loki instance.";
# TODO: FIXME: this should not be named proxy. get domain from globals and name this secretAggregatorNode or smth.
@ -114,15 +115,15 @@ in {
];
relabel_configs = [
{
source_labels = ["__journal__hostname"];
source_labels = [ "__journal__hostname" ];
target_label = "host";
}
{
source_labels = ["__journal_priority"];
source_labels = [ "__journal_priority" ];
target_label = "priority";
}
{
source_labels = ["__journal_priority_keyword"];
source_labels = [ "__journal_priority_keyword" ];
target_label = "level";
}
#{
@ -130,15 +131,15 @@ in {
# target_label = "unit";
#}
{
source_labels = ["__journal__systemd_user_unit"];
source_labels = [ "__journal__systemd_user_unit" ];
target_label = "user_unit";
}
{
source_labels = ["__journal__boot_id"];
source_labels = [ "__journal__boot_id" ];
target_label = "boot_id";
}
{
source_labels = ["__journal__comm"];
source_labels = [ "__journal__comm" ];
target_label = "command";
}
];