【文件属性】:
文件名称:nix
文件大小:165KB
文件格式:ZIP
更新时间:2021-03-09 01:45:15
Nix
此存储库包含用于配置计算机和用户家庭的*.nix文件,以及一些自定义程序包和覆盖。
os/host
os/host中文件的命名方案基于 。
下面的脚本说明了这个想法:
# This (re-)generates /etc/machine-id
systemd-machine-id-setup
# This function hashes /etc/machine-id, since it should be
# treated as a secret (according to the manpage).
function machine-hash {
nix-hash --type sha256 --base32 --flat /etc/machine-id
}
# Rebuild for current machine
nixos-rebuild switch --flake