From 6caeb2125491af72efdb8d8d2021ad467db4e071 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 3 Sep 2026 03:40:18 +0530 Subject: feat: added desktop items for TUI apps with icons --- modules/development/lazygit/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/development/lazygit') diff --git a/modules/development/lazygit/default.nix b/modules/development/lazygit/default.nix index 027ef7f..60913c0 100644 --- a/modules/development/lazygit/default.nix +++ b/modules/development/lazygit/default.nix @@ -14,6 +14,22 @@ }; }; config = { + home.file.".local/share/icons/hicolor/scalable/apps/git.svg" = + lib.mkIf config.development.lazygit.enable + { + source = ../../../assets/icons/apps/git.svg; + }; + + xdg.desktopEntries."lazygit" = lib.mkIf config.development.lazygit.enable { + name = "lazygit"; + exec = "${lib.getExe config.terminal.kitty.package} --class lazygit -e ${lib.getExe config.development.lazygit.package}"; + icon = "git"; + categories = [ "Development" ]; + comment = "A simple terminal UI for git commands"; + terminal = false; + type = "Application"; + }; + programs.lazygit = lib.mkIf config.development.lazygit.enable { enable = true; enableBashIntegration = config.terminal.bash.enable; -- cgit v1.2.3