cli: Use either eza or exa depending on home-manager version

This commit is contained in:
Alexander Kobjolke 2023-12-14 21:44:37 +01:00
parent f3adc3a8d5
commit 4b3ed18218

View file

@ -7,6 +7,8 @@ let
fullName = "Alexander Kobjolke";
mail = "me@failco.de";
};
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in {
imports = [
# shell config
@ -126,7 +128,7 @@ in {
};
# better ls with icons and stuff, maybe also try lsd
eza = {
${myEza} = {
enable = true;
icons = true;
enableAliases = true;