{ config, lib, pkgs, ... }: let inherit (lib) mkIf mkMerge mkThenElse; cfg = config.r6d.config-generator; computers = config.r6d.computers; profiles = config.r6d.profiles; in mkIf true { # Paquets environment.systemPackages = with pkgs; [ bc mailutils ]; # Services ## Noeud de supervision munin = pas de stockage des données locales services.munin-node = { enable = true; }; systemd.services.munin-node = { path = with pkgs; [ munin lm_sensors ]; serviceConfig.TimeoutStartSec = "3min"; }; ## Munin server -- generate /var/www/munin services.munin-cron = { enable = true; hosts = '' [${config.networking.hostName}] address 127.0.0.1 ''; extraGlobalConfig = '' contact.email.command ${pkgs.mutt}/bin/mutt -F /etc/nixos/base/public/munin-muttrc -s "Munin notification for ''${var:host}" jean-pierre@ocean.prunetwork.fr ''; }; # Réseau networking.firewall = { allowedTCPPorts = [ #8000 ]; allowedUDPPorts = [ ]; }; }