mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Add a desktop file for CLion launched in a dev shell
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
{
|
||||
imports = [
|
||||
./desktop-files.nix
|
||||
./flatpak.nix
|
||||
./gnome.nix
|
||||
./packages.nix
|
||||
|
||||
30
common/modules/desktop-files.nix
Normal file
30
common/modules/desktop-files.nix
Normal 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"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user