demo nixos-containers

This commit is contained in:
Vivian 2023-12-30 14:47:12 +01:00
parent 6034940039
commit 40d88c2169
5 changed files with 62 additions and 16 deletions

View file

@ -0,0 +1,5 @@
{ ... }: {
imports = [
./grafana.nix
];
}

View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }: {
services.grafana = {
enable = true;
domain = "grafana.olympus";
port = 80;
addr = "0.0.0.0";
};
networking.firewall.allowedTCPPorts = [ config.services.grafana.port ];
}