Compare commits

...

4 commits

4 changed files with 39 additions and 20 deletions

View file

@ -55,10 +55,15 @@
type = "fcitx5"; type = "fcitx5";
}; };
xdg.mimeApps = { xdg.mimeApps =
enable = true; let
defaultApplications = { associations = {
"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,6 +102,7 @@
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,15 +129,20 @@ in
}; };
}; };
xdg.mimeApps = lib.mkIf cfg.enable { xdg.mimeApps =
enable = true; let
# source: https://unix.stackexchange.com/a/684582 # source: https://unix.stackexchange.com/a/684582
defaultApplications = { associations = {
"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,6 +3,9 @@
lib, lib,
... ...
}: }:
let
cfg = config.programs.sioyek;
in
{ {
programs.sioyek = { programs.sioyek = {
bindings = { bindings = {
@ -28,10 +31,15 @@
config.should_launch_new_window = "1"; config.should_launch_new_window = "1";
}; };
xdg.mimeApps = lib.mkIf config.programs.sioyek.enable { xdg.mimeApps =
enable = true; let
defaultApplications = { associations = {
"application/pdf" = [ "sioyek.desktop" ]; "application/pdf" = [ "sioyek.desktop" ];
};
in
lib.mkIf cfg.enable {
enable = true;
associations.added = associations;
defaultApplications = associations;
}; };
};
} }