aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development
diff options
context:
space:
mode:
Diffstat (limited to 'modules/development')
-rw-r--r--modules/development/lazygit/default.nix16
-rw-r--r--modules/development/opencode/default.nix16
2 files changed, 32 insertions, 0 deletions
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;
diff --git a/modules/development/opencode/default.nix b/modules/development/opencode/default.nix
index 3cbc05e..04796d9 100644
--- a/modules/development/opencode/default.nix
+++ b/modules/development/opencode/default.nix
@@ -17,6 +17,22 @@
};
config = lib.mkIf config.development.opencode.enable {
+ home.file.".local/share/icons/hicolor/scalable/apps/opencode.svg" =
+ lib.mkIf config.development.opencode.enable
+ {
+ source = ../../../assets/icons/apps/opencode.svg;
+ };
+
+ xdg.desktopEntries."opencode" = {
+ name = "opencode";
+ exec = "${lib.getExe config.terminal.kitty.package} --class opencode -e ${lib.getExe config.development.opencode.package}";
+ icon = "opencode";
+ categories = [ "Development" ];
+ comment = "AI-powered coding assistant";
+ terminal = false;
+ type = "Application";
+ };
+
programs.opencode = {
enable = true;
package = pkgs.opencode;