Use nix builtins for hostId
This commit is contained in:
committed by
George Melikov
parent
ef2be632e8
commit
2af017fe58
@@ -42,7 +42,7 @@ Live image ships with ZFS support by default.
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{ boot.supportedFilesystems = [ "zfs" ];
|
{ boot.supportedFilesystems = [ "zfs" ];
|
||||||
networking.hostId = "$(head -c 8 /etc/machine-id)";
|
networking.hostId = (builtins.substring 0 8 (builtins.readFile "/etc/machine-id"));
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user