mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-04-01 02:00:22 +02:00
Move clion desktop file to hm
This commit is contained in:
@@ -5,9 +5,12 @@
|
||||
{
|
||||
imports = [
|
||||
./dconf
|
||||
./desktop-files.nix
|
||||
./starship.nix
|
||||
./zsh.nix
|
||||
];
|
||||
|
||||
xdg.enable = true;
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
}
|
||||
|
||||
46
common/modules/home/desktop-files.nix
Normal file
46
common/modules/home/desktop-files.nix
Normal 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;
|
||||
'';
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user