From 51dd0b65f4b5c6cce31cc69e19bf11c16bb62f78 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Mon, 17 Oct 2016 10:06:24 +0200 Subject: [PATCH] =?UTF-8?q?correction=20r=C3=A9gression=20sur=20hostname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/network.nix | 18 ++++++++++++++++++ public/public.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 public/network.nix diff --git a/public/network.nix b/public/network.nix new file mode 100644 index 0000000..cd89819 --- /dev/null +++ b/public/network.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: + +let + inherit (lib) mkIf mkMerge mkThenElse; + cfg = config.r6d.config-generator; + computers = config.r6d.computers; + profiles = config.r6d.profiles; +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 + networking.extraHosts = '' + 127.0.0.1 ${config.networking.hostName} + ''; +} diff --git a/public/public.nix b/public/public.nix index 2e0eaf7..7dc042f 100644 --- a/public/public.nix +++ b/public/public.nix @@ -12,6 +12,7 @@ in # installées systématiquement ./environment.nix ./localisation.nix + ./network.nix #./network-ipv6.nix ./sudo.nix ./service-haveged.nix