Move clion desktop file to hm

This commit is contained in:
2026-03-01 09:12:10 +01:00
parent 6147d3ca27
commit c08b8b2ae0
5 changed files with 51 additions and 31 deletions

View File

@@ -5,7 +5,6 @@
{
imports = [
./attic.nix
./desktop-files.nix
./flatpak.nix
./gnome.nix
./packages.nix

View File

@@ -1,30 +0,0 @@
{
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"
];
})
];
}

View File

@@ -5,9 +5,12 @@
{
imports = [
./dconf
./desktop-files.nix
./starship.nix
./zsh.nix
];
xdg.enable = true;
home.stateVersion = "25.05";
}

View File

@@ -0,0 +1,46 @@
{
config,
pkgs,
...
}:
{
/*
xdg.desktopEntries = {
"clion" = {
name = "CLion (Nix Shell)";
genericName = "C/C++ IDE from JetBrains";
exec = "nix develop ${config.xdg.configHome}/nix-shells/cpp -c clion %f";
icon = "clion";
type = "Application";
terminal = false;
categories = [
"Development"
"IDE"
];
settings = {
StartupWMClass = "jetbrains-clion";
};
mimeType = [
"text/x-c++src"
"text/x-c++hdr"
"text/x-csrc"
"text/x-chdr"
];
};
};
*/
xdg.dataFile."applications/clion.desktop".text = ''
[Desktop Entry]
Type=Application
Name=CLion (Nix Shell)
GenericName=C/C++ IDE from JetBrains
Exec=sh -c "nix develop ${config.xdg.configHome}/nix-shells/cpp -c clion %f"
Icon=clion
Terminal=false
Categories=Development;IDE;
StartupWMClass=jetbrains-clion
MimeType=text/x-c++src;text/x-c++hdr;text/x-csrc;text/x-chdr;
'';
}

View File

@@ -1,4 +1,5 @@
{
config,
...
}:
@@ -8,6 +9,7 @@
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
dotDir = "${config.xdg.configHome}/zsh";
oh-my-zsh = {
enable = true;