From 1102138015fd71682d23d031a3f77c988513afbc Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Mon, 13 May 2024 02:19:54 +0200 Subject: [PATCH] [Network] compute networking.hostId using the hash of the hostname --- network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network.nix b/network.nix index 2b20747..de5a3e4 100644 --- a/network.nix +++ b/network.nix @@ -78,7 +78,7 @@ in # Must always be false networking.useDHCP = false; - networking.hostId = mkDefault (builtins.abort "Default hostId not changed" null); + networking.hostId = mkDefault (substring 0 8 (builtins.hashString "sha256" config.networking.hostName)); networking.hostName = mkDefault (builtins.abort "Default hostname not changed" null); # Needed for proper WiFi support in some countries (like France, for instance)