aboutsummaryrefslogtreecommitdiffstats
path: root/modules/networking/bluetui/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/networking/bluetui/default.nix')
-rw-r--r--modules/networking/bluetui/default.nix22
1 files changed, 9 insertions, 13 deletions
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
];
};
}