autogenerate hostId

This commit is contained in:
Sean Buckley 2021-04-04 18:25:13 -04:00
parent 1d7f360a45
commit 135afae0d8

View file

@ -17,6 +17,8 @@
zramSwap.enable = true; zramSwap.enable = true;
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
hardware = { hardware = {
cpu.amd.updateMicrocode = true; cpu.amd.updateMicrocode = true;
cpu.intel.updateMicrocode = true; cpu.intel.updateMicrocode = true;