Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
4c0e29da8f
commit
bb2fe56082
40 changed files with 595 additions and 1144 deletions
|
|
@ -1,14 +1,27 @@
|
|||
_: {
|
||||
{ config, ... }:
|
||||
{
|
||||
sops.secrets.grafana_user = {
|
||||
mode = "0440";
|
||||
owner = config.users.users.grafana.name;
|
||||
group = config.users.users.grafana.group;
|
||||
};
|
||||
|
||||
sops.secrets.grafana_password = {
|
||||
mode = "0440";
|
||||
owner = config.users.users.grafana.name;
|
||||
group = config.users.users.grafana.group;
|
||||
};
|
||||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 3000;
|
||||
http_port = 3001;
|
||||
};
|
||||
security = {
|
||||
admin_user = "admin";
|
||||
admin_password = "changeme";
|
||||
admin_user = "${config.sops.secrets.grafana_user.path}";
|
||||
admin_password = "${config.sops.secrets.grafana_password.path}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue