summary refs log tree commit diff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2021-11-20 01:32:55 +0200
committerArtturin <Artturin@artturin.com>2021-11-21 01:39:39 +0200
commit2077956e7813fcc57f45d07a4b46715d0cd592ce (patch)
treed04e4292e4e21bd0556157cf55311d07cfb8d050
parent4ae4baa724033663030314a35c89df0aecc05f5b (diff)
downloadnixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar.gz
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar.bz2
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar.lz
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar.xz
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.tar.zst
nixpkgs-2077956e7813fcc57f45d07a4b46715d0cd592ce.zip
nixos/network-interfaces: add a warning for underscores in hostname
until the issues in https://github.com/NixOS/nixpkgs/pull/138978
have been resolved
-rw-r--r--nixos/modules/tasks/network-interfaces.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 4e20ec11846..38b7f66bae4 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 {