mirror of
https://github.com/JaxTheWolf/nixos.git
synced 2026-03-31 17:50:23 +02:00
Move clion desktop file to hm
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
{
|
||||
imports = [
|
||||
./attic.nix
|
||||
./desktop-files.nix
|
||||
./flatpak.nix
|
||||
./gnome.nix
|
||||
./packages.nix
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -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