nanuqsaurus/modules/desktop/desktop-entries.nix

48 lines
1 KiB
Nix

{ lib, pkgs, ... }:
let
thunarDesktopOverride = pkgs.makeDesktopItem {
name = "thunar";
desktopName = "Files";
genericName = "File Manager";
tryExec = "thunar";
exec = "thunar %U";
icon = "org.xfce.thunar";
categories = [
"Utility"
"FileManager"
];
mimeTypes = [ "inode/directory" ];
keywords = [
"folder"
"manager"
"explorer"
"files"
];
startupNotify = true;
startupWMClass = "Thunar";
terminal = false;
comment = "Browse files";
};
ghosttyDesktopOverride = pkgs.makeDesktopItem {
name = "com.mitchellh.ghostty";
desktopName = "Terminal";
genericName = "Terminal Emulator";
exec = "ghostty-cairo";
icon = "com.mitchellh.ghostty";
categories = [
"System"
"TerminalEmulator"
"Utility"
];
terminal = false;
comment = "Terminal (Cairo renderer fallback)";
};
in
{
environment.systemPackages = lib.mkAfter [
(lib.hiPrio thunarDesktopOverride)
(lib.hiPrio ghosttyDesktopOverride)
];
}