Add firefox back with updated mimeapps

This commit is contained in:
Evie Litherland-Smith 2024-02-02 06:43:10 +00:00
parent 6e98ffa1f7
commit e5d09152c1
2 changed files with 20 additions and 14 deletions

View file

@ -17,6 +17,7 @@
../swaync/default.nix ../swaync/default.nix
../alacritty/default.nix ../alacritty/default.nix
../emacs/default.nix ../emacs/default.nix
../firefox/default.nix
../nyxt/default.nix ../nyxt/default.nix
../qutebrowser/default.nix ../qutebrowser/default.nix
../obs/default.nix ../obs/default.nix
@ -239,8 +240,8 @@
"SUPER, Return, exec, ${alacritty.package}/bin/alacritty" "SUPER, Return, exec, ${alacritty.package}/bin/alacritty"
"SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c" "SUPER SHIFT, Return, exec, ${emacs.finalPackage}/bin/emacsclient -c"
"SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery" "SUPER, S, exec, ${alacritty.package}/bin/alacritty -e btm --group --battery"
"SUPER, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}" "SUPER, W, exec, ${qutebrowser.package}/bin/qutebrowser"
"SUPER SHIFT, W, exec, ${qutebrowser.package}/bin/qutebrowser" "SUPER SHIFT, W, exec, ${pkgs.nyxt}/bin/nyxt --no-socket --with-file bookmarks=${../nyxt/bookmarks.lisp}"
# Misc useful binds # Misc useful binds
'',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"'' '',Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)"''

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./desktop.nix ./chromium.nix]; imports = [./desktop.nix ./firefox.nix ./chromium.nix];
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = { environment = {
sessionVariables = { sessionVariables = {
@ -21,8 +21,8 @@
protonvpn-gui protonvpn-gui
mpv mpv
streamlink streamlink
libreoffice
webcord webcord
teams-for-linux
]; ];
}; };
security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
@ -39,22 +39,17 @@
}; };
xdg.mime = let xdg.mime = let
emacs = ["emacsclient.desktop" "emacs.desktop"]; emacs = ["emacsclient.desktop" "emacs.desktop"];
browser = ["org.qutebrowser.qutebrowser.desktop" "nyxt.desktop" "chromium-browser.desktop" "firefox.desktop"]; browser = ["firefox.desktop" "org.qutebrowser.qutebrowser.desktop" "nyxt.desktop"];
applications = { applications = {
"application/pdf" = emacs;
"application/epub+zip" = emacs;
"application/oxps" = emacs;
"image/jpeg" = ["swayimg.desktop"] ++ emacs; "image/jpeg" = ["swayimg.desktop"] ++ emacs;
"image/png" = ["swayimg.desktop"] ++ emacs; "image/png" = ["swayimg.desktop"] ++ emacs;
"video/mp4" = ["mpv.desktop"]; "video/mp4" = ["mpv.desktop"];
"text/csv" = emacs; "text/csv" = emacs;
"text/html" = browser; "text/html" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser; "application/pdf" = emacs;
"x-scheme-handler/about" = browser; "application/epub+zip" = emacs;
"x-scheme-handler/chrome" = browser; "application/oxps" = emacs;
"x-scheme-handler/webcal" = browser;
"x-scheme-handler/unknown" = browser;
"application/x-extension-htm" = browser; "application/x-extension-htm" = browser;
"application/x-extension-html" = browser; "application/x-extension-html" = browser;
"application/x-extension-shtml" = browser; "application/x-extension-shtml" = browser;
@ -62,6 +57,16 @@
"application/x-extension-xhtml" = browser; "application/x-extension-xhtml" = browser;
"application/x-extension-xht" = browser; "application/x-extension-xht" = browser;
"application/x-mozilla-bookmarks" = browser; "application/x-mozilla-bookmarks" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/chrome" = browser;
"x-scheme-handler/webcal" = browser;
"x-scheme-handler/ms-word" = emacs;
"x-scheme-handler/ms-powerpoint" = emacs;
"x-scheme-handler/ms-excel" = emacs;
"x-scheme-handler/unknown" = emacs;
}; };
in { in {
enable = true; enable = true;