changed secret owner and formatted files
Some checks failed
/ Check formatting (push) Failing after 1s

This commit is contained in:
Ittihadyya 2024-12-20 16:19:33 +02:00
parent 95d419d9e4
commit 2697607f91
4 changed files with 21 additions and 13 deletions

View file

@ -42,7 +42,7 @@
interfaces.eth0.allowedTCPPorts = [ interfaces.eth0.allowedTCPPorts = [
80 # http 80 # http
222 # forgejo ssh 222 # forgejo ssh
443 # https 443 # https
64738 # murmur tcp 64738 # murmur tcp
]; ];
interfaces.eth0.allowedUDPPorts = [ interfaces.eth0.allowedUDPPorts = [

View file

@ -1,15 +1,19 @@
{ {
glucose.modules = [ glucose.modules = [
({config, lib, ...}: { ({
config,
lib,
...
}: {
services.grafana = { services.grafana = {
enable = true; enable = true;
dataDir = "/var/services/grafana"; dataDir = "/var/services/grafana";
# declarativePlugins = null; # declarativePlugins = null;
settings = { settings = {
# analytics = {}; # analytics = {};
# database = {}; # database = {};
# paths = {}; # paths = {};
security = { security = {
admin_user = "$__file" + "{${config.sops.secrets.grafana_admin_account.path}}"; admin_user = "$__file" + "{${config.sops.secrets.grafana_admin_account.path}}";
admin_password = "$__file" + "{${config.sops.secrets.grafana_admin_pass.path}}"; admin_password = "$__file" + "{${config.sops.secrets.grafana_admin_pass.path}}";
@ -20,16 +24,18 @@
http_addr = "127.0.0.1"; http_addr = "127.0.0.1";
http_port = 6700; http_port = 6700;
}; };
# smtp = {}; # smtp = {};
# users = {}; # users = {};
}; };
/*provision = { /*
provision = {
alerting = {}; alerting = {};
dashboards = {}; dashboards = {};
datasources = {}; datasources = {};
};*/ };
*/
}; };
}) })
]; ];
} }

View file

@ -5,8 +5,8 @@
enable = true; enable = true;
port = 6750; port = 6750;
enableReload = true; enableReload = true;
}; };
} }
]; ];
} }

View file

@ -57,6 +57,8 @@
({config, ...}: { ({config, ...}: {
sops.secrets.grafana_admin_pass = {}; sops.secrets.grafana_admin_pass = {};
sops.secrets.grafana_admin_account = {}; sops.secrets.grafana_admin_account = {};
sops.secrets.grafana_admin_account.owner = "grafana";
sops.secrets.grafana_admin_pass.owner = "grafana";
}) })
( (
{config, ...}: { {config, ...}: {