From d8d4727e9b6417948f21376e8293c755fa10c0f1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 12:25:13 +0530 Subject: feat: using xdg.desktopEntries inplace of lib.makeDesktopItem --- modules/networking/bluetui/default.nix | 22 +++++++++------------- modules/networking/impala/default.nix | 22 +++++++++------------- 2 files changed, 18 insertions(+), 26 deletions(-) (limited to 'modules/networking') diff --git a/modules/networking/bluetui/default.nix b/modules/networking/bluetui/default.nix index c6cb96b..339c822 100644 --- a/modules/networking/bluetui/default.nix +++ b/modules/networking/bluetui/default.nix @@ -5,18 +5,6 @@ pkgs, ... }: -let - bluetuiDesktopItem = pkgs.makeDesktopItem { - name = "bluetui"; - desktopName = "BlueTUI"; - exec = "${lib.getExe config.terminal.kitty.package} --class bluetui -e ${lib.getExe config.networking.bluetui.package}"; - icon = "kitty"; - categories = [ "Network" ]; - comment = "Bluetooth TUI client"; - terminal = false; - type = "Application"; - }; -in { imports = [ ./assertions.nix @@ -28,9 +16,17 @@ in }; config = lib.mkIf config.networking.bluetui.enable { + xdg.desktopEntries."bluetui" = { + name = "BlueTUI"; + exec = "${lib.getExe config.terminal.kitty.package} --class bluetui -e ${lib.getExe config.networking.bluetui.package}"; + icon = "kitty"; + categories = [ "Network" ]; + comment = "Bluetooth TUI client"; + terminal = false; + type = "Application"; + }; home.packages = [ config.networking.bluetui.package - bluetuiDesktopItem ]; }; } diff --git a/modules/networking/impala/default.nix b/modules/networking/impala/default.nix index 81b9df5..b850dcc 100644 --- a/modules/networking/impala/default.nix +++ b/modules/networking/impala/default.nix @@ -5,18 +5,6 @@ pkgs, ... }: -let - impalaDesktopItem = pkgs.makeDesktopItem { - name = "impala"; - desktopName = "Impala"; - exec = "${lib.getExe config.terminal.kitty.package} --class impala -e ${lib.getExe config.networking.impala.package}"; - icon = "kitty"; - categories = [ "Network" ]; - comment = "TUI for managing wifi on Linux"; - terminal = false; - type = "Application"; - }; -in { imports = [ ./assertions.nix @@ -28,9 +16,17 @@ in }; config = lib.mkIf config.networking.impala.enable { + xdg.desktopEntries."impala" = { + name = "Impala"; + exec = "${lib.getExe config.terminal.kitty.package} --class impala -e ${lib.getExe config.networking.impala.package}"; + icon = "kitty"; + categories = [ "Network" ]; + comment = "TUI for managing wifi on Linux"; + terminal = false; + type = "Application"; + }; home.packages = [ config.networking.impala.package - impalaDesktopItem ]; xdg.mimeApps.defaultApplications = { -- cgit v1.2.3