Skip to content

Commit

Permalink
networking.hostId: fix cmd in description
Browse files Browse the repository at this point in the history
1. Simplify the command by reading directly from /etc/machine-id which
is already a random, lower-case hex string
2. Previously, the command output could be too short because of missing
leading digits. This is now fixed.
  • Loading branch information
erikarvstedt committed Sep 11, 2018
1 parent 189b861 commit 7a42623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/tasks/network-interfaces.nix
Expand Up @@ -341,7 +341,7 @@ in
You should try to make this ID unique among your machines. You can
generate a random 32-bit ID using the following commands:
<literal>cksum /etc/machine-id | while read c rest; do printf "%x" $c; done</literal>
<literal>head -c 8 /etc/machine-id</literal>
(this derives it from the machine-id that systemd generates) or
Expand Down

0 comments on commit 7a42623

Please sign in to comment.