2021-12-17 15:10:10 +01:00
|
|
|
{ lib, pkgs, nixosConfig, ... }:
|
2020-12-05 15:01:40 +01:00
|
|
|
|
2020-11-07 14:32:31 +01:00
|
|
|
{
|
|
|
|
xdg.mimeApps = {
|
2021-02-12 21:12:03 +01:00
|
|
|
enable = nixosConfig.sbruder.gui.enable;
|
2021-03-03 21:44:40 +01:00
|
|
|
defaultApplications =
|
|
|
|
let
|
2023-12-13 17:10:30 +01:00
|
|
|
browser = "librewolf.desktop";
|
2021-03-03 21:44:40 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
"application/pdf" = "org.pwmt.zathura.desktop";
|
|
|
|
"image/jpeg" = "mpv.desktop";
|
|
|
|
"image/png" = "mpv.desktop";
|
|
|
|
"text/html" = browser;
|
|
|
|
"x-scheme-handler/http" = browser;
|
|
|
|
"x-scheme-handler/https" = browser;
|
|
|
|
};
|
2020-11-07 14:32:31 +01:00
|
|
|
};
|
2021-01-05 23:32:29 +01:00
|
|
|
# Some programs overwrite the mimeapps.list symlink with a normal file which
|
|
|
|
# makes home-manager activation fail
|
2021-02-12 21:12:03 +01:00
|
|
|
xdg.configFile = lib.mkIf nixosConfig.sbruder.gui.enable {
|
2021-01-05 23:32:29 +01:00
|
|
|
"mimeapps.list".force = true;
|
|
|
|
};
|
2021-12-17 15:10:10 +01:00
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
xdg-utils # qt programs require xdg-open in path to use a reasonable program (i.e. not firefox)
|
|
|
|
];
|
2020-11-07 14:32:31 +01:00
|
|
|
}
|