From bed675f400e8bdd683390c67eae69dbdca55fe93 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 15 Dec 2014 17:03:28 +0100 Subject: [PATCH] nixos-generate-config: Don't emit networking.hostId Systemd already generates /etc/machine-id. So there is no need to generate another unique host identifer. --- nixos/modules/installer/tools/nixos-generate-config.pl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 34e5828b742..43a83e0206d 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -476,14 +476,6 @@ EOF EOF } - # Generate a random 32-bit value to use as the host id - open my $rnd, "<", "/dev/urandom" or die $!; - read $rnd, $hostIdBin, 4; - close $rnd; - - # Convert the 32-bit value to a hex string - my $hostIdHex = unpack("H*", $hostIdBin); - write_file($fn, <