From 4b3ed182189088de581a3d6a082c6bda65647d0a Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Thu, 14 Dec 2023 21:44:37 +0100 Subject: [PATCH] cli: Use either eza or exa depending on home-manager version --- home/cli.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/cli.nix b/home/cli.nix index 4da6676..44777d0 100644 --- a/home/cli.nix +++ b/home/cli.nix @@ -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;