2016-08-11 19:56:15 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
2016-08-12 11:51:40 +02:00
|
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
2017-04-28 16:24:04 +02:00
|
|
|
annuaire = config.r6d.machines;
|
2021-05-06 23:50:07 +02:00
|
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
2017-05-31 00:23:10 +02:00
|
|
|
flags = currentMachine.configurationFlags;
|
2016-08-11 19:56:15 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
|
|
mkIf true {
|
2016-08-12 11:51:40 +02:00
|
|
|
|
|
|
|
|
# Paquets
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Services
|
|
|
|
|
|
|
|
|
|
# Réseau
|
|
|
|
|
networking.firewall = {
|
|
|
|
|
allowedTCPPorts = [
|
|
|
|
|
];
|
|
|
|
|
allowedUDPPorts = [
|
|
|
|
|
];
|
|
|
|
|
};
|
2018-03-02 07:57:10 +01:00
|
|
|
} // {
|
|
|
|
|
assertions = [
|
|
|
|
|
{
|
|
|
|
|
assertion = true;
|
|
|
|
|
message = "Assetion toujours valide.";
|
|
|
|
|
}
|
|
|
|
|
];
|
2016-08-11 19:56:15 +02:00
|
|
|
}
|