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"; type = "fcitx5";
}; };
xdg.mimeApps = xdg.mimeApps = {
let enable = true;
associations = { defaultApplications = {
"x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ]; "x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ];
};
in
{
enable = true;
associations.added = associations;
defaultApplications = associations;
}; };
};
} }

View file

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

View file

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

View file

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