Fix: General home-manager.users."${sys.username}".home.shellAliases loading too late; breaks running "fetch" in zsh.initExtra

This commit is contained in:
Joey Hafner 2025-01-08 12:26:39 -08:00
parent ee812b92c6
commit 373d1e1fe8
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55

View File

@ -1,4 +1,11 @@
{ sys, pkgs, usr, flake, ... }: {
{ sys, pkgs, usr, flake, ... }: let
aliases = {
cat = "bat --paging=never --color=always";
ls = "eza";
tree = "eza --tree";
fetch = "fastfetch";
};
in {
users.users."${sys.username}".shell = pkgs.${sys.shellPackage};
programs."${sys.shellPackage}".enable = true;
home-manager.users."${sys.username}" = {
@ -309,12 +316,7 @@
};
};
home.shellAliases = {
cat = "bat --paging=never --color=always";
ls = "eza";
tree = "eza --tree";
fetch = "fastfetch";
};
home.shellAliases = aliases;
programs.zsh = {
enable = true;
@ -322,6 +324,7 @@
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = aliases;
history = {
share = true;
save = 10000;
@ -352,6 +355,5 @@
fetch
'';
};
};
}