接下来我简单解释一下 imports 的原理。可以看到 configuration.nix 这个函数有参数 config,pkgs,和一些被我们忽略掉的参数(...)。NixOS 会用相同的参数(包括忽略掉的和没忽略的)去调用 imports 里的每个文件,然后把返回的配置和当前配置合并。
覆盖的吗?
接下来我简单解释一下 imports 的原理。可以看到 configuration.nix 这个函数有参数 config,pkgs,和一些被我们忽略掉的参数(...)。NixOS 会用相同的参数(包括忽略掉的和没忽略的)去调用 imports 里的每个文件,然后把返回的配置和当前配置合并。
覆盖的吗?
The overwrite_destination setting determines whether the contents of the destination field should be replaced if the field is already filled. By default, if a field already contains data, it won't be modified.
防止你对字典做的修改被覆盖。
版本更新,带来了全新的同步助手,帮你管理自己的配置文件、导出文章。同时,本次更新
ds