feat: setup the password for grafana

This commit is contained in:
silver 2024-05-23 02:39:36 +01:00
parent 40e4fe5ac4
commit 23f77caef6
Signed by: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 17 additions and 0 deletions

View file

@ -54,12 +54,16 @@ in {
"${name}.skynet.ie" "${name}.skynet.ie"
]; ];
age.secrets.grafana_pw.file = ../secrets/grafana/pw.age;
services.grafana = { services.grafana = {
enable = true; enable = true;
domain = "${name}.skynet.ie"; domain = "${name}.skynet.ie";
port = port; port = port;
addr = cfg.host.ip; addr = cfg.host.ip;
settings.security.admin_password = "$__file{${config.age.secrets.grafana_pw.path}}";
provision = { provision = {
enable = true; enable = true;
datasources.settings.datasources = [ datasources.settings.datasources = [

13
secrets/grafana/pw.age Normal file
View file

@ -0,0 +1,13 @@
age-encryption.org/v1
-> ssh-ed25519 V1pwNA ly/9CnXtgQlXTbKcK+gD+v0Ck7rmGtNrA/S9XfBdg3s
6skVNVJTgCf/EWlDbH6urfr4CUibVH/N+HcfIYPkzTo
-> ssh-ed25519 4PzZog 7+Fc9ec8zvlKP6VGKJa3MRN6p9bUrA07/BlL8rSnp3w
YgALG1b8QOmMqWuqr9iVxAal9cWFf8me0KT1Mg0onko
-> ssh-ed25519 5Nd93w /lx/evI9jsXzHMxXYQMoavWucTMiGMXwxACpjXYFZlU
nVWhQydOO8eaTYcR66u1MeH/glmwTDJnJM0I9tXUvV0
-> ssh-ed25519 q8eJgg wYOxbUUXrTgY9XkUz02qtW8TaYJfNej9VBdwvfUWrT8
/47DLKQGt1M3fJWDHo2Eg2ij4jCGd17ieYZ8gA/uYjY
-> ssh-ed25519 IzAMqA FfUA/kyLBOFIHFUO+PSsdTwaRjGvfsq7OTMXYo7/WjM
jEn8y+mncrOPmDzvsK90X2D/m8ZxmuIL8H0h27YP3hM
--- ibLXLaT49j/Mb8CwbcL+Gjwy5GJ5YDX31JQFqfOIXRw
ºôag9Ò a“Yâ«Ò<C2AB>öä”<C3A4>GADóðgûÅi°^ýUaß± YÏã@4><01> ¬óÐàò£Ý*‚Š?úÉ„5»F-íã8Ã