From 4618c3f7fb7400d664b1ef98733607a3ea231933 Mon Sep 17 00:00:00 2001 From: Christine Elisabeth Koppel Date: Sun, 15 Feb 2026 16:20:58 +0100 Subject: [PATCH] Add mail server to Grafana logs. --- .../modules/scripts/compose_two_nix.zsh | 10 +++++++++- .../modules/system/gramethus.nix | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/nix-system-configs/modules/scripts/compose_two_nix.zsh b/nix-system-configs/modules/scripts/compose_two_nix.zsh index b0e71b0..1e01a26 100755 --- a/nix-system-configs/modules/scripts/compose_two_nix.zsh +++ b/nix-system-configs/modules/scripts/compose_two_nix.zsh @@ -1,3 +1,11 @@ ## Todo, make a proper script for this EDITOR=micro nix-shell -p sops --run "SOPS_AGE_KEY_FILE=$HOME/.config/sops/age/keys.txt sops nix-system-configs/secrets/songsheet/secrets.yaml" -compose2nix --inputs nix-system-configs/modules/songsheet/wavelog/docker-compose.yml --sops_file nix-system-configs/secrets/songsheet/secrets.yaml --project=wavelog --output nix-system-configs/modules/songsheet/wavelog/docker-compose.nix --root_path nix-system-configs/modules/songsheet/wavelog \ No newline at end of file +compose2nix --inputs nix-system-configs/modules/songsheet/wavelog/docker-compose.yml --sops_file nix-system-configs/secrets/songsheet/secrets.yaml --project=wavelog --output nix-system-configs/modules/songsheet/wavelog/docker-compose.nix --root_path nix-system-configs/modules/songsheet/wavelog + + +# Todo make a proper script for this: +NIXOS_CONFIG="/home/nixosbm/the_prg_server_configuration/nix-system-configs/modules/system/mail-server.nix" nixos-rebuild build-image --image-variant proxmox +#Mind the ``` +# - In `/home/nixosbm/the_prg_server_configuration/nix-system-configs/modules/bootloader/seabios-assigned-proxmox-at-birth.nix': "/dev/vda1" +# - In `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/virtualisation/proxmox-image.nix': "/dev/disk/by-label/nixos" +#``` \ No newline at end of file diff --git a/nix-system-configs/modules/system/gramethus.nix b/nix-system-configs/modules/system/gramethus.nix index d26361f..e6b4e4d 100644 --- a/nix-system-configs/modules/system/gramethus.nix +++ b/nix-system-configs/modules/system/gramethus.nix @@ -130,6 +130,24 @@ in { isDefault = false; editable = true; } + + + { + name = "Prometheus - Mail Server"; + type = "prometheus"; + url = "http://10.1.1.15:9001"; + isDefault = false; + editable = true; + } + + { + name = "Loki - Mail Server"; + type = "loki"; + url = "http://10.1.1.15:3100"; + isDefault = false; + editable = true; + } + ]; }; };