You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
934 B
Nix
47 lines
934 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
9 years ago
|
|
||
9 years ago
|
let
|
||
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
|
cfg = config.r6d.config-generator;
|
||
|
computers = config.r6d.computers;
|
||
|
profiles = config.r6d.profiles;
|
||
|
in
|
||
9 years ago
|
|
||
9 years ago
|
mkIf true {
|
||
|
|
||
9 years ago
|
# Paquets
|
||
|
environment.systemPackages = with pkgs; [
|
||
8 years ago
|
bc
|
||
9 years ago
|
mailutils
|
||
|
];
|
||
|
|
||
9 years ago
|
# Services
|
||
|
|
||
|
## Noeud de supervision munin = pas de stockage des données locales
|
||
9 years ago
|
services.munin-node = {
|
||
|
enable = true;
|
||
|
};
|
||
8 years ago
|
systemd.services.munin-node.serviceConfig.TimeoutStartSec = "3min";
|
||
9 years ago
|
|
||
9 years ago
|
## Munin server -- generate /var/www/munin
|
||
9 years ago
|
services.munin-cron = {
|
||
|
enable = true;
|
||
|
hosts = ''
|
||
|
[${config.networking.hostName}]
|
||
8 years ago
|
address 127.0.0.1
|
||
9 years ago
|
'';
|
||
|
extraGlobalConfig = ''
|
||
9 years ago
|
contact.email.command mail -s "Munin notification for ''${var:host}" root@${config.networking.hostName}
|
||
9 years ago
|
'';
|
||
|
};
|
||
|
|
||
9 years ago
|
# Réseau
|
||
|
networking.firewall = {
|
||
|
allowedTCPPorts = [
|
||
8 years ago
|
#8000
|
||
9 years ago
|
];
|
||
|
allowedUDPPorts = [
|
||
|
];
|
||
|
};
|
||
9 years ago
|
}
|