From 30fa87189b4c733c7601af899ff793b8d004e498 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 9 Sep 2023 21:35:35 +0530 Subject: [PATCH] configure lsd --- home/programs/lsd.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/home/programs/lsd.nix b/home/programs/lsd.nix index 327678d..14ebd74 100644 --- a/home/programs/lsd.nix +++ b/home/programs/lsd.nix @@ -1,8 +1,27 @@ -_: { +{pkgs, ...}: let + dracula-lsd = pkgs.fetchFromGitHub { + owner = "dracula"; + repo = "lsd"; + rev = "75f3305a2bba4dacac82b143a15d278daee28232"; + hash = "sha256-ZNyNYJEffxxU7K/7JOv+VRD3JbhW42kvmWk7pLu1vA8="; + }; +in { + xdg.configFile."lsd/themes/colors.yaml".source = "${dracula-lsd}/dracula.yaml"; programs.lsd = { enable = true; enableAliases = true; settings = { + color = { + when = "always"; + theme = "custom"; + }; + icons = { + when = "always"; + theme = "fancy"; + }; + sorting = { + dir-grouping = "first"; + }; date = "relative"; }; };