fix: mime type

This commit is contained in:
DACHXY 2025-05-05 18:45:36 +08:00
parent 7bdc1c4048
commit 8c739b17f1
3 changed files with 7 additions and 2 deletions

View file

@ -35,10 +35,14 @@ in
enable = true;
associations.added = {
"application/pdf" = [ browser ];
"image/jpeg" = [ browser ];
"image/png" = [ browser ];
};
defaultApplications = {
"text/html" = browser;
"application/pdf" = [ browser ];
"image/jpeg" = [ browser ];
"image/png" = [ browser ];
};
};
}

View file

@ -1,4 +1,5 @@
{
pkgs,
...
}:
let
@ -25,7 +26,7 @@ in
programs = {
firefox = {
enable = true;
# package = inputs.firefox.packages.${system}.firefox-nightly-bin;
package = pkgs.firefox;
languagePacks = [
"en-US"
"zh-TW"

View file

@ -13,7 +13,7 @@ let
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
dbus-update-activation-environment --systemd --all &
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME &
'';
in
''${startupScript}/bin/start''