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