36 lines
656 B
Nix
36 lines
656 B
Nix
{ lib, config, pkgs, inputs, ... }: {
|
|
|
|
imports = [
|
|
./logging/prometheus.nix
|
|
./logging/suricata.nix
|
|
../hardware/logging.nix
|
|
./headless.nix
|
|
(import ./networking.nix {
|
|
hostname = "r330-logging";
|
|
ip_address = "192.168.100.41";
|
|
open_ports = [ 3000 9001 9003 ];
|
|
inherit lib;
|
|
})
|
|
|
|
];
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
users.users.logging = import ./user.nix;
|
|
|
|
services.grafana = {
|
|
enable = true;
|
|
settings.server = {
|
|
http_addr = "0.0.0.0";
|
|
http_port = 3000;
|
|
domain = "logging.randomctf.local";
|
|
};
|
|
};
|
|
|
|
|
|
services.nginx = {
|
|
# Grafana
|
|
|
|
};
|
|
}
|