From 135afae0d8332fbdfa83bad851487bb00b5d79db Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 4 Apr 2021 18:25:13 -0400 Subject: [PATCH] autogenerate hostId --- modules/baseline.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/baseline.nix b/modules/baseline.nix index 625f288..4e1f2e3 100644 --- a/modules/baseline.nix +++ b/modules/baseline.nix @@ -17,6 +17,8 @@ zramSwap.enable = true; + networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName); + hardware = { cpu.amd.updateMicrocode = true; cpu.intel.updateMicrocode = true;