nix/modules/system/xdg/default.nix

24 lines
550 B
Nix
Raw Normal View History

2024-09-14 19:27:42 +02:00
{...}: {
home-manager.users.joy.xdg = {
2024-09-14 21:19:26 +02:00
desktopEntries = {
hx = {
name = "Helix";
exec = "alacritty -e hx %F";
icon = "Helix";
terminal = false;
type = "Application";
categories = ["Utility" "TextEditor"];
mimeType = ["text/plain"];
};
};
2024-09-14 19:27:42 +02:00
mimeApps = {
enable = true;
defaultApplications = {
"text/plain" = ["hx.desktop"];
"image/*" = ["imv.desktop"];
"video/*" = ["mpv.desktop"];
};
};
};
}