From b2f119d95dc36f32b9cf06f1538784c85476c650 Mon Sep 17 00:00:00 2001
From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru>
Date: Mon, 3 Feb 2025 01:40:38 +0300
Subject: [PATCH] host/tatos: fix basic auth file permissions

---
 hosts/tatos/services/prometheus.nix | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/hosts/tatos/services/prometheus.nix b/hosts/tatos/services/prometheus.nix
index 73b656f..7bcceaa 100644
--- a/hosts/tatos/services/prometheus.nix
+++ b/hosts/tatos/services/prometheus.nix
@@ -10,7 +10,11 @@ let
   };
 in
 {
-  age.secrets.prometheus-basicauth-password.file = ./prometheus-basicauth-password.age;
+  age.secrets.prometheus-basicauth-password = {
+    file = ./prometheus-basicauth-password.age;
+    owner = "prometheus";
+    group = "prometheus";
+  };
 
   services.prometheus.exporters.node = {
     enable = true;