This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/xdg/xdg.nix

85 lines
3.7 KiB
Nix

{ config, ... }:
{
# xdg
xdg.configFile."mimeapps.list".force = true;
# set defaults
xdg.mimeApps = {
enable = true;
defaultApplications = {
# images
"image/bmp" = [ "org.gnome.Loupe.desktop" ];
"image/gif" = [ "org.gnome.Loupe.desktop" ];
"image/heic" = [ "org.gnome.Loupe.desktop" ];
"image/jpeg" = [ "org.gnome.Loupe.desktop" ];
"image/png" = [ "org.gnome.Loupe.desktop" ];
"image/svg+xml" = [ "org.gnome.Loupe.desktop" ];
"image/webp" = [ "org.gnome.Loupe.desktop" ];
"image/x-icon" = [ "org.gnome.Loupe.desktop" ];
"image/x-panasonic-raw" = [ "org.gnome.Loupe.desktop" ];
# video
"application/mxf" = [ "mpv.desktop" ];
"application/sdp" = [ "mpv.desktop" ];
"application/smil" = [ "mpv.desktop" ];
"application/streamingmedia" = [ "mpv.desktop" ];
"application/vnd.apple.mpegurl" = [ "mpv.desktop" ];
"application/vnd.ms-asf" = [ "mpv.desktop" ];
"application/vnd.rn-realmedia" = [ "mpv.desktop" ];
"application/vnd.rn-realmedia-vbr" = [ "mpv.desktop" ];
"application/x-cue" = [ "mpv.desktop" ];
"application/x-extension-m4a" = [ "mpv.desktop" ];
"application/x-extension-mp4" = [ "mpv.desktop" ];
"application/x-matroska" = [ "mpv.desktop" ];
"application/x-mpegurl" = [ "mpv.desktop" ];
"application/x-ogm" = [ "mpv.desktop" ];
"application/x-ogm-video" = [ "mpv.desktop" ];
"application/x-shorten" = [ "mpv.desktop" ];
"application/x-smil" = [ "mpv.desktop" ];
"application/x-streamingmedia" = [ "mpv.desktop" ];
"video/3gp" = [ "mpv.desktop" ];
"video/3gpp" = [ "mpv.desktop" ];
"video/3gpp2" = [ "mpv.desktop" ];
"video/avi" = [ "mpv.desktop" ];
"video/divx" = [ "mpv.desktop" ];
"video/dv" = [ "mpv.desktop" ];
"video/fli" = [ "mpv.desktop" ];
"video/flv" = [ "mpv.desktop" ];
"video/mkv" = [ "mpv.desktop" ];
"video/mp2t" = [ "mpv.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"video/mp4v-es" = [ "mpv.desktop" ];
"video/mpeg" = [ "mpv.desktop" ];
"video/msvideo" = [ "mpv.desktop" ];
"video/ogg" = [ "mpv.desktop" ];
"video/quicktime" = [ "mpv.desktop" ];
"video/vnd.divx" = [ "mpv.desktop" ];
"video/vnd.mpegurl" = [ "mpv.desktop" ];
"video/vnd.rn-realvideo" = [ "mpv.desktop" ];
"video/webm" = [ "mpv.desktop" ];
"video/x-avi" = [ "mpv.desktop" ];
"video/x-flc" = [ "mpv.desktop" ];
"video/x-flic" = [ "mpv.desktop" ];
"video/x-flv" = [ "mpv.desktop" ];
"video/x-m4v" = [ "mpv.desktop" ];
"video/x-matroska" = [ "mpv.desktop" ];
"video/x-mpeg2" = [ "mpv.desktop" ];
"video/x-mpeg3" = [ "mpv.desktop" ];
"video/x-ms-afs" = [ "mpv.desktop" ];
"video/x-ms-asf" = [ "mpv.desktop" ];
"video/x-ms-wmv" = [ "mpv.desktop" ];
"video/x-ms-wmx" = [ "mpv.desktop" ];
"video/x-ms-wvxvideo" = [ "mpv.desktop" ];
"video/x-msvideo" = [ "mpv.desktop" ];
"video/x-ogm" = [ "mpv.desktop" ];
"video/x-ogm+ogg" = [ "mpv.desktop" ];
"video/x-theora" = [ "mpv.desktop" ];
"video/x-theora+ogg" = [ "mpv.desktop" ];
};
};
}