Use nix builtins for hostId

This commit is contained in:
Issam Maghni
2023-01-01 20:23:20 -05:00
committed by George Melikov
parent ef2be632e8
commit 2af017fe58

View File

@@ -42,7 +42,7 @@ Live image ships with ZFS support by default.
{ config, pkgs, ... }:
{ boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "$(head -c 8 /etc/machine-id)";
networking.hostId = (builtins.substring 0 8 (builtins.readFile "/etc/machine-id"));
}
EOF