feat(xdg): Configure portals
This commit is contained in:
parent
039c23bd76
commit
d6b876860e
1 changed files with 31 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.preferXdgDirectories = true;
|
||||
|
||||
|
@ -26,5 +26,35 @@
|
|||
templates = null;
|
||||
videos = "${homeDir}/videos";
|
||||
};
|
||||
|
||||
portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
config.common.default = [ "gtk" ];
|
||||
};
|
||||
|
||||
mimeApps = rec {
|
||||
enable = true;
|
||||
|
||||
associations.added = {
|
||||
"application/json" = [ "nvim.desktop" ];
|
||||
"application/pdf" = [ "org.pwmt.zathura-pdf-mupdf.desktop" ];
|
||||
"application/xhtml+xml" = [ "zen-alpha.desktop" ];
|
||||
"application/x-extension-htm" = [ "zen-alpha.desktop" ];
|
||||
"application/x-extension-html" = [ "zen-alpha.desktop" ];
|
||||
"application/x-extension-shtml" = [ "zen-alpha.desktop" ];
|
||||
"application/x-extension-xhtml" = [ "zen-alpha.desktop" ];
|
||||
"application/x-extension-xht" = [ "zen-alpha.desktop" ];
|
||||
"image/png" = [ "feh.desktop" ];
|
||||
"text/html" = [ "zen-alpha.desktop" ];
|
||||
"text/plain" = [ "nvim.desktop" ];
|
||||
"x-scheme-handler/chrome" = [ "zen-alpha.desktop" ];
|
||||
"x-scheme-handler/http" = [ "zen-alpha.desktop" ];
|
||||
"x-scheme-handler/https" = [ "zen-alpha.desktop" ];
|
||||
};
|
||||
|
||||
defaultApplications = associations.added;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue