diff options
Diffstat (limited to 'modules/gaming/heroic')
| -rw-r--r-- | modules/gaming/heroic/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gaming/heroic/default.nix b/modules/gaming/heroic/default.nix index 9c07f17..591e60b 100644 --- a/modules/gaming/heroic/default.nix +++ b/modules/gaming/heroic/default.nix @@ -31,6 +31,16 @@ config = lib.mkIf config.gaming.heroic.enable { home.packages = [ config.gaming.heroic.package ]; + xdg.desktopEntries."heroic" = { + name = "Heroic Games Launcher"; + exec = "${lib.getExe' config.gaming.heroic.package "heroic"} %u"; + icon = "${pkgs.heroic}/share/icons/hicolor/scalable/apps/com.heroicgameslauncher.hgl.svg"; + comment = "An Open Source Launcher for GOG, Epic Games and Amazon Games"; + categories = [ "Game" ]; + mimeType = [ "x-scheme-handler/heroic" ]; + type = "Application"; + }; + xdg.mimeApps.defaultApplications = { "x-scheme-handler/heroic" = "heroic.desktop"; }; |
