Migrate to flake
This commit is contained in:
parent
7e24481850
commit
6cdbba8c60
42 changed files with 842 additions and 770 deletions
63
home/fhauser/mimetypes.nix
Normal file
63
home/fhauser/mimetypes.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
xdg.mimeApps = rec {
|
||||
enable = true;
|
||||
associations.added = defaultApplications;
|
||||
defaultApplications = let
|
||||
browser = [ "firefox.desktop" ];
|
||||
email = [ "org.gnome.Evolution.desktop" ];
|
||||
doc-editor = [ "writer.desktop" ];
|
||||
sheet-editor = [ "calc.desktop" ];
|
||||
presentation-editor = [ "impress.desktop" ];
|
||||
pdf = [ "org.gnome.Evince.desktop" ];
|
||||
image = [ "org.gnome.eog.desktop" "gimp.desktop" ];
|
||||
image-vector = [ "org.inkscape.Inkscape.desktop" ];
|
||||
ebooks = [ "calibre-ebook-viewer.desktop" ];
|
||||
code-general = [ "codium.desktop" ];
|
||||
video = [ "vlc.desktop" ];
|
||||
compression = [ "org.gnome.Nautilus.desktop" ];
|
||||
in {
|
||||
"text/html" = browser;
|
||||
"x-scheme-handler/http" = browser;
|
||||
"x-scheme-handler/https" = browser;
|
||||
"x-scheme-handler/chrome" = browser;
|
||||
"application/xhtml+xml" = browser;
|
||||
"application/x-extension-htm" = browser;
|
||||
"application/x-extension-html" = browser;
|
||||
"application/x-extension-shtml" = browser;
|
||||
"application/x-extension-xhtml" = browser;
|
||||
"application/x-extension-xht" = browser;
|
||||
"x-scheme-handler/mailto" = email;
|
||||
"x-scheme-handler/msteams" = [ "teams.desktop" ];
|
||||
|
||||
"application/vnd.oasis.opendocument.text" = doc-editor;
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
|
||||
doc-editor;
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" =
|
||||
sheet-editor;
|
||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation" =
|
||||
presentation-editor;
|
||||
"application/vnd.oasis.opendocument.presentation" = presentation-editor;
|
||||
"application/pdf" = pdf;
|
||||
"application/x-extension-pdf" = pdf;
|
||||
"application/epub+zip" = ebooks;
|
||||
|
||||
"text/plain" = code-general;
|
||||
"application/json" = code-general;
|
||||
"text/markdown" = code-general;
|
||||
|
||||
"image/png" = image;
|
||||
"image/jpg" = image;
|
||||
"image/jpeg" = image;
|
||||
"image/x-tga" = image;
|
||||
"image/tiff" = image;
|
||||
"image/x-canon-cr2" = image;
|
||||
"application/x-ptoptimizer-script" = [ "hugin.desktop" ];
|
||||
"image/svg+xml" = image-vector;
|
||||
|
||||
"video/mp4" = video;
|
||||
|
||||
"application/zip" = compression;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue