|
|
|
@ -21,7 +21,6 @@ in
|
|
|
|
|
#* Utilisé pour avoir des raccourcis de machine
|
|
|
|
|
r6d.computers = {
|
|
|
|
|
isNomade = mkEnableOption "Identification du nom de machine.";
|
|
|
|
|
isRollo = mkEnableOption "Identification du nom de machine.";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -31,18 +30,6 @@ in
|
|
|
|
|
config = mkMerge
|
|
|
|
|
[
|
|
|
|
|
## Définition des profils génériques
|
|
|
|
|
(mkIf (pfl.isServer && !comp.isMonstre) {
|
|
|
|
|
r6d.config-generator = {
|
|
|
|
|
#database_postgres = true;
|
|
|
|
|
dns_autorite = true;
|
|
|
|
|
#dns_resolveur = true;
|
|
|
|
|
# inutile d'exposer la conf complète du serveur par le store tant qu'il n'y a pas de protection complémentaire - utilisation SSH ?
|
|
|
|
|
#nix-serve-server = true;
|
|
|
|
|
smokeping = true;
|
|
|
|
|
|
|
|
|
|
#rabbitmq = true;
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
# /!\ PAS un serveur
|
|
|
|
|
(mkIf (!pfl.isServer || comp.isMonstre) {
|
|
|
|
|
r6d.config-generator = {
|
|
|
|
@ -54,6 +41,7 @@ in
|
|
|
|
|
|
|
|
|
|
# Dubro Vivo - St Malo
|
|
|
|
|
#tincAddress = "192.168.12.8/24";
|
|
|
|
|
|
|
|
|
|
(mkIf comp.isNomade{
|
|
|
|
|
networking.hostName = "nomade.dubronetwork.fr"; # Define your hostname.
|
|
|
|
|
r6d.profiles.isDubronetwork = true;
|
|
|
|
@ -62,28 +50,5 @@ in
|
|
|
|
|
laptop = true;
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
(mkIf comp.isRollo {
|
|
|
|
|
networking.hostName = "rollo.dubronetwork.fr"; # Define your hostname.
|
|
|
|
|
r6d.profiles = {
|
|
|
|
|
isDubronetwork = true;
|
|
|
|
|
isServer = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
r6d.config-generator = {
|
|
|
|
|
dovecot = true;
|
|
|
|
|
fail2ban = true;
|
|
|
|
|
mailboxes = true;
|
|
|
|
|
murmur = true;
|
|
|
|
|
nix-serve-client = true;
|
|
|
|
|
nix-serve-server = true;
|
|
|
|
|
tincAddress = "192.168.12.5/24";
|
|
|
|
|
tincExtraConfig = ''
|
|
|
|
|
ConnectTo = hydra_prunetwork_fr
|
|
|
|
|
ConnectTo = ocean_prunetwork_fr
|
|
|
|
|
'';
|
|
|
|
|
virtualbox = true;
|
|
|
|
|
znc = true;
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|