Files

25 lines
728 B
Nix
Raw Permalink Normal View History

2016-10-17 10:06:24 +02:00
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
annuaire = config.r6d.machines;
currentMachine = annuaire."${config.networking.fqdn}";
flags = currentMachine.configurationFlags;
2016-10-17 10:06:24 +02:00
in
mkIf true {
# fix: Hostname -s renvoie "Unknown host" alors que hostname renvoie la bonne valeur
# Il s'avère que hostname vérifie la validité du FQDN et du reverse.
# Fixer ces paramètres dans les hosts permet de faire tomber en marche
2017-04-27 22:06:12 +02:00
networking.extraHosts = ''
127.0.0.1 ${config.networking.fqdn} ${config.networking.hostName}
2016-10-17 10:06:24 +02:00
'';
2017-08-13 14:37:29 +02:00
# Activation du routage
boot.kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = true;
"net.ipv4.conf.default.forwarding" = true;
};
2016-10-17 10:06:24 +02:00
}