nix/modules/system/xdg/default.nix

29 lines
630 B
Nix
Raw Normal View History

2024-09-14 19:27:42 +02:00
{...}: {
home-manager.users.joy.xdg = {
2024-09-14 21:25:34 +02:00
desktopEntries = {
hx = {
name = "Helix";
exec = "alacritty -e hx %F";
2024-09-18 22:46:59 +02:00
icon = "helix";
2024-09-14 21:25:34 +02:00
terminal = false;
type = "Application";
categories = ["Utility" "TextEditor"];
mimeType = ["text/plain"];
2024-09-14 21:19:26 +02:00
};
2024-09-14 21:25:34 +02:00
};
2024-09-14 19:27:42 +02:00
mimeApps = {
enable = true;
defaultApplications = {
"text/plain" = ["hx.desktop"];
"image/*" = ["imv.desktop"];
"video/*" = ["mpv.desktop"];
};
};
2024-09-18 19:29:17 +02:00
userDirs = {
2024-10-04 15:19:23 +02:00
enable = false;
2024-09-18 19:29:17 +02:00
desktop = "~/media/pic/screen";
download = "~/dl";
};
2024-09-14 19:27:42 +02:00
};
}