grafana: fix error undefing var config and firewall config
This commit is contained in:
parent
f11bc1b50a
commit
3c3f38bda0
1 changed files with 7 additions and 0 deletions
|
@ -1,10 +1,13 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [];
|
||||
|
||||
# configure static IP address
|
||||
networking.useDHCP = false;
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
|
@ -16,6 +19,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
security.admin_password = "$__file{${sops.secrets.vms.grafana.admin_password.path}}";
|
||||
|
@ -32,6 +37,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../secrets/passwords.yaml;
|
||||
"vms"."grafana"."admin_password" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue