Browse Source

Remove deprecated keys

main
Leonora Tindall 8 months ago
parent
commit
89f534cff1
  1. 2
      common/common.nix
  2. 10
      common/fragments/grafana.nix

2
common/common.nix

@ -12,7 +12,7 @@
boot.cleanTmpDir = true;
nix.autoOptimiseStore = true;
nix.settings.auto-optimise-store = true;
nixpkgs.config = {
allowUnfree = true;

10
common/fragments/grafana.nix

@ -1,12 +1,14 @@
{ config, pkgs, ...}: {
services.grafana = {
enable = true;
domain = "${config.networking.hostName}.local";
port = 2342;
addr = "0.0.0.0";
settings = {
server.domain = "dashboard.home.nora.codes";
server.http_port = 2342;
server.http_addr = "0.0.0.0";
};
};
networking.firewall.allowedTCPPorts = [ config.services.grafana.port ];
networking.firewall.allowedTCPPorts = [ config.services.grafana.settings.server.http_port ];
services.prometheus = {
enable = true;

Loading…
Cancel
Save