nix/modules/system/xdg/default.nix
2024-09-18 10:55:38 +02:00

29 lines
638 B
Nix

{...}: {
home-manager.users.joy.xdg = {
desktopEntries = {
hx = {
name = "Helix";
exec = "alacritty -e hx %F";
icon = "Helix";
terminal = false;
type = "Application";
categories = ["Utility" "TextEditor"];
mimeType = ["text/plain"];
};
};
mimeApps = {
enable = true;
defaultApplications = {
"text/plain" = ["hx.desktop"];
"image/*" = ["imv.desktop"];
"video/*" = ["mpv.desktop"];
};
};
userDirs = {
enable =true;
desktop = "~/media/pic/screen";
download = "~/dl";
};
};
}