auth machine

This commit is contained in:
plasmagoat 2025-07-16 02:10:31 +02:00
parent 98dce86882
commit 851a9e18db
34 changed files with 2383 additions and 99 deletions

View file

@ -5,6 +5,8 @@
lib,
...
}: {
# Add grafana user to the inlfuxdb2 group (for secret)
users.users.grafana.extraGroups = ["influxdb2"];
services.grafana.enable = true;
services.grafana.settings = {
server = {
@ -57,7 +59,7 @@
httpHeaderName1 = "Authorization";
};
secureJsonData = {
httpHeaderValue1 = "Token iY4MTuqUAVJbBkDUiMde";
httpHeaderValue1 = "$__file{${config.sops.secrets."influxdb/token".path}}";
};
}
];
@ -123,4 +125,11 @@
group = "grafana";
mode = "0644";
};
environment.etc."grafana-dashboards/gatus.json" = {
source = ./dashboards/gatus.json;
user = "grafana";
group = "grafana";
mode = "0644";
};
}