@@ -476,14 +476,6 @@ EOF
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;
484− # Convert the 32-bit value to a hex string
485− my $hostIdHex = unpack("H*", $hostIdBin);
487 write_file($fn, <<EOF);
479 write_file($fn, <<EOF);
488# Edit this configuration file to define what should be installed on
480# Edit this configuration file to define what should be installed on
489# your system. Help is available in the configuration.nix(5) man page
481# your system. Help is available in the configuration.nix(5) man page
@@ -499,7 +491,6 @@ EOF
500$bootLoaderConfig
492$bootLoaderConfig
501 # networking.hostName = "nixos"; # Define your hostname.
493 # networking.hostName = "nixos"; # Define your hostname.
502− networking.hostId = "$hostIdHex";
503 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
494 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
505 # Select internationalisation properties.
496 # Select internationalisation properties.