strato-infra/nixos/machines/grafana/default.nix
Julius fa09bf933c
Update to nixpkgs 22.05
Add grafana and prometheus as well
Remove glitch-soc, maybe I'll try mastodon sometime in the future
but not now.
2022-06-06 19:19:45 +02:00

20 lines
520 B
Nix

{ config, pkgs, ... }: {
imports = [ ../../common ../../common/lxc.nix ];
networking.hostName = "grafana";
system.stateVersion = "21.11";
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [ 2345 ];
services.grafana = {
enable = true;
domain = "stats.asraphiel.dev";
rootUrl = "https://stats.asraphiel.dev/";
port = 2345;
addr = "0.0.0.0";
auth.anonymous.enable = true;
auth.anonymous.org_role = "Viewer";
auth.anonymous.org_name = "Asraphiel";
};
}