mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Compare commits
4 commits
c2c655981a
...
9b02b9e1da
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b02b9e1da | |||
| 5bad4db389 | |||
| 05e980d72a | |||
| 2cada3b44e |
4 changed files with 39 additions and 20 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue