Add a desktop file for CLion launched in a dev shell

This commit is contained in:
2026-02-24 23:11:17 +01:00
parent 8b5feff5b5
commit 84b57d81b5
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{
pkgs,
...
}:
{
environment.systemPackages = with pkgs; [
(makeDesktopItem {
name = "clion-nix-shell";
desktopName = "CLion (Nix Shell)";
genericName = "C/C++ IDE from JetBrains";
exec = "sh -c \"nix develop ~/.config/nix-shells/cpp -c clion %f\"";
icon = "clion";
type = "Application";
terminal = false;
categories = [
"Development"
"IDE"
];
startupWMClass = "jetbrains-clion";
mimeTypes = [
"text/x-c++src"
"text/x-c++hdr"
"text/x-csrc"
"text/x-chdr"
];
})
];
}