Error during system configuration: 'exa' removed due to unmaintained upstream
YukiCoco opened this issue · comments
文档 里使用 home-manager 时,当使用 sudo nixos-rebuild switch
会出现这个问题:
Issue in the documentation: Error occurs when using sudo nixos-rebuild switch
command with home-manager:
building the system configuration...
error:
… while calling the 'head' builtin
at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/lib/attrsets.nix:960:11:
959| || pred here (elemAt values 1) (head values) then
960| head values
| ^
961| else
… while evaluating the attribute 'value'
at /nix/store/0g53xyh39z3y90p4d8r341wbqyjy1zhl-source/lib/modules.nix:809:9:
808| in warnDeprecation opt //
809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
810| inherit (res.defsFinal') highestPrio;
(stack trace truncated; use '--show-trace' to show the full trace)
error: 'exa' has been removed because it is unmaintained upstream. Consider using 'eza', a maintained fork
Solution: Replace the following block:
home.packages = with pkgs; [
# ......
yq-go # yaml processer https://github.com/mikefarah/yq
exa # edit here! 修改这里!
fzf # A command-line fuzzy finder
];
with:
home.packages = with pkgs; [
# ......
yq-go # yaml processer https://github.com/mikefarah/yq
eza # Fine!
fzf # A command-line fuzzy finder
];