add default applications

This commit is contained in:
caandt 2024-08-23 15:58:18 -05:00
parent d8f65b1fc1
commit 3e6e703783

View file

@ -60,5 +60,21 @@ in
}; };
home.file.".icons/default/index.theme".enable = false; home.file.".icons/default/index.theme".enable = false;
home.file.".icons/breeze_cursors".enable = false; home.file.".icons/breeze_cursors".enable = false;
xdg.mimeApps.enable = true;
xdg.mimeApps.defaultApplications = let
image = "nsxiv.desktop";
browser = "firefox.desktop";
text = "nvim.desktop";
media = "mpv.desktop";
in {
"image/jpeg" = image;
"image/png" = image;
"image/gif" = media;
"audio/mpeg" = media;
"video/mp4" = media;
"video/mpeg" = media;
"text/plain" = text;
"application/xml" = text;
};
home.stateVersion = "24.05"; home.stateVersion = "24.05";
} }