@@ -476,14 +476,6 @@ EOF
476476EOF
477477 }
478478
479− # Generate a random 32-bit value to use as the host id
480− open my $rnd, "<", "/dev/urandom" or die $!;
481− read $rnd, $hostIdBin, 4;
482− close $rnd;
483−
484− # Convert the 32-bit value to a hex string
485− my $hostIdHex = unpack("H*", $hostIdBin);
486−
487479 write_file($fn, <<EOF);
488480# Edit this configuration file to define what should be installed on
489481# your system. Help is available in the configuration.nix(5) man page
@@ -499,7 +491,6 @@ EOF
499491
500492$bootLoaderConfig
501493 # networking.hostName = "nixos"; # Define your hostname.
502− networking.hostId = "$hostIdHex";
503494 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
504495
505496 # Select internationalisation properties.