Compare commits

..

No commits in common. "9b02b9e1da0c644b2b0ac1e72ae621b6c406c92f" and "c2c655981af0fc900cf73fc5b4dcc8561e6fd836" have entirely different histories.

4 changed files with 20 additions and 39 deletions

View file

@ -55,15 +55,10 @@
type = "fcitx5";
};
xdg.mimeApps =
let
associations = {
"x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ];
};
in
{
enable = true;
associations.added = associations;
defaultApplications = associations;
xdg.mimeApps = {
enable = true;
defaultApplications = {
"x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ];
};
};
}

View file

@ -102,7 +102,6 @@
pkgs.mousai
pkgs.localsend # file share with iOS
pkgs.minder # mindmap tool
pkgs.mkvtoolnix
# social
pkgs.iamb

View file

@ -129,20 +129,15 @@ in
};
};
xdg.mimeApps =
let
# source: https://unix.stackexchange.com/a/684582
associations = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
in
lib.mkIf cfg.enable {
enable = true;
associations.added = associations;
defaultApplications = associations;
xdg.mimeApps = lib.mkIf cfg.enable {
enable = true;
# source: https://unix.stackexchange.com/a/684582
defaultApplications = {
"text/html" = "firefox.desktop";
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = "firefox.desktop";
"x-scheme-handler/about" = "firefox.desktop";
"x-scheme-handler/unknown" = "firefox.desktop";
};
};
}

View file

@ -3,9 +3,6 @@
lib,
...
}:
let
cfg = config.programs.sioyek;
in
{
programs.sioyek = {
bindings = {
@ -31,15 +28,10 @@ in
config.should_launch_new_window = "1";
};
xdg.mimeApps =
let
associations = {
"application/pdf" = [ "sioyek.desktop" ];
};
in
lib.mkIf cfg.enable {
enable = true;
associations.added = associations;
defaultApplications = associations;
xdg.mimeApps = lib.mkIf config.programs.sioyek.enable {
enable = true;
defaultApplications = {
"application/pdf" = [ "sioyek.desktop" ];
};
};
}