Commit 460a2805d102

Vincent Demeester <vincent@sbr.pm>
2022-04-21 19:08:51
systems/shikoku: fix networking.hostId
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent eefa175
Changed files (1)
systems
systems/hosts/shikoku.nix
@@ -21,7 +21,7 @@ in
   ];
 
   boot.supportedFilesystems = [ "zfs" ];
-  networking.hostId = "$(head -c 8 /etc/machine-id)";
+  networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
 
   networking = {
     bridges.br1.interfaces = [ "enp0s31f6" ];