Files
infrastructure/machines/infradocs/configuration.nix
2025-01-21 23:11:33 +01:00

44 lines
825 B
Nix

{ config, lib, pkgs, inputs, ... }:
with lib;
{
networking = {
hostName = mkDefault "infradocs";
useDHCP = false;
};
imports = [
../durruti/documentation.nix
../modules/malobeo_user.nix
../modules/sshd.nix
];
networking.firewall.allowedTCPPorts = [ 9002 ];
services.prometheus = {
exporters = {
node = {
enable = true;
enabledCollectors = [ "systemd" "processes" ];
port = 9002;
};
};
};
services.promtail = {
enable = true;
configFile = import ../modules/malobeo/promtail_config.nix {
lokiAddress = "10.0.0.14";
logNginx = true;
config = config;
pkgs = pkgs;
};
};
users.users.promtail.extraGroups = [ "nginx" "systemd-journal" ];
system.stateVersion = "22.11"; # Did you read the comment?
}