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; enable = true;
associations.added = { associations.added = {
"application/pdf" = [ browser ]; "application/pdf" = [ browser ];
"image/jpeg" = [ browser ];
"image/png" = [ browser ];
}; };
defaultApplications = { defaultApplications = {
"text/html" = browser; "text/html" = browser;
"application/pdf" = [ browser ]; "application/pdf" = [ browser ];
"image/jpeg" = [ browser ];
"image/png" = [ browser ];
}; };
}; };
} }

View file

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

View file

@ -13,7 +13,7 @@ let
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
dbus-update-activation-environment --systemd --all & 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 in
''${startupScript}/bin/start'' ''${startupScript}/bin/start''