From 2077956e7813fcc57f45d07a4b46715d0cd592ce Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 20 Nov 2021 01:32:55 +0200 Subject: [PATCH] nixos/network-interfaces: add a warning for underscores in hostname until the issues in https://github.com/NixOS/nixpkgs/pull/138978 have been resolved --- nixos/modules/tasks/network-interfaces.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 4e20ec118464..38b7f66bae4f 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -417,7 +417,11 @@ in network node hostname (uname --nodename) the option boot.kernel.sysctl."kernel.hostname" can be used as a workaround (but the 64 character limit still applies). + + WARNING: Do not use underscores (_) or you may run into unexpected issues. ''; + # warning until the issues in https://github.com/NixOS/nixpkgs/pull/138978 + # are resolved }; networking.fqdn = mkOption {