mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
No commits in common. "9b02b9e1da0c644b2b0ac1e72ae621b6c406c92f" and "c2c655981af0fc900cf73fc5b4dcc8561e6fd836" have entirely different histories.
9b02b9e1da
...
c2c655981a
4 changed files with 20 additions and 39 deletions
|
|
@ -55,15 +55,10 @@
|
|||
type = "fcitx5";
|
||||
};
|
||||
|
||||
xdg.mimeApps =
|
||||
let
|
||||
associations = {
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ];
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@
|
|||
pkgs.mousai
|
||||
pkgs.localsend # file share with iOS
|
||||
pkgs.minder # mindmap tool
|
||||
pkgs.mkvtoolnix
|
||||
|
||||
# social
|
||||
pkgs.iamb
|
||||
|
|
|
|||
|
|
@ -129,20 +129,15 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
xdg.mimeApps =
|
||||
let
|
||||
xdg.mimeApps = lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
# source: https://unix.stackexchange.com/a/684582
|
||||
associations = {
|
||||
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";
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
xdg.mimeApps = lib.mkIf config.programs.sioyek.enable {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = [ "sioyek.desktop" ];
|
||||
};
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
enable = true;
|
||||
associations.added = associations;
|
||||
defaultApplications = associations;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue