2017-06-03 12:58:10 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
|
|
|
|
annuaire = config.r6d.machines;
|
2021-05-06 23:50:07 +02:00
|
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
2017-06-03 12:58:10 +02:00
|
|
|
flags = currentMachine.configurationFlags;
|
|
|
|
|
in
|
|
|
|
|
|
|
|
|
|
mkIf flags.nixos-manual {
|
|
|
|
|
|
|
|
|
|
# Paquets
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
bc
|
|
|
|
|
mailutils
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Services
|
|
|
|
|
|
|
|
|
|
## documentation sur ctrl + alt + F8
|
2019-05-26 13:07:20 +02:00
|
|
|
documentation.nixos = {
|
2017-06-03 12:58:10 +02:00
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Réseau
|
|
|
|
|
networking.firewall = {
|
|
|
|
|
allowedTCPPorts = [
|
|
|
|
|
];
|
|
|
|
|
allowedUDPPorts = [
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|