Remove teams-for-linux, switch back to chromium for backup browser

Add emacsclient as preferred mime entry with emacs as fallback
This commit is contained in:
Evie Litherland-Smith 2024-01-29 11:33:05 +00:00
parent 59284d137b
commit 762f1ef71d
2 changed files with 21 additions and 20 deletions

View file

@ -1,4 +1,5 @@
{ ... }: { { pkgs, ... }: {
environment.systemPackages = [ pkgs.chromium ];
programs.chromium = rec { programs.chromium = rec {
enable = true; enable = true;
defaultSearchProviderEnabled = true; defaultSearchProviderEnabled = true;

View file

@ -1,5 +1,5 @@
{ pkgs, ... }: { { pkgs, ... }: {
imports = [ ./desktop.nix ./firefox.nix ./chromium.nix ]; imports = [ ./desktop.nix ./chromium.nix ];
nixpkgs.config.chromium.commandLineArgs = nixpkgs.config.chromium.commandLineArgs =
"--enable-features=UseOzonePlatform --ozone-platform=wayland"; "--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = { environment = {
@ -33,7 +33,6 @@
mpg123 mpg123
libreoffice libreoffice
webcord webcord
teams-for-linux
]; ];
}; };
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };
@ -52,26 +51,27 @@
xdg.mime = rec { xdg.mime = rec {
enable = true; enable = true;
defaultApplications = { defaultApplications = {
"application/pdf" = [ "emacs.desktop" ]; "application/pdf" = [ "emacsclient.desktop" "emacs.desktop" ];
"application/epub+zip" = [ "emacs.desktop" ]; "application/epub+zip" = [ "emacsclient.desktop" "emacs.desktop" ];
"application/oxps" = [ "emacs.desktop" ]; "application/oxps" = [ "emacsclient.desktop" "emacs.desktop" ];
"image/jpeg" = [ "swayimg.desktop" ]; "image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ]; "image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ]; "video/mp4" = [ "mpv.desktop" ];
"text/csv" = [ "emacs.desktop" ]; "text/csv" = [ "emacsclient.desktop" "emacs.desktop" ];
"text/html" = [ "firefox.desktop" ]; "text/html" = [ "chromium.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/http" = [ "chromium.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "chromium.desktop" ];
"x-scheme-handler/about" = [ "firefox.desktop" ]; "x-scheme-handler/about" = [ "chromium.desktop" ];
"x-scheme-handler/chrome" = [ "firefox.desktop" ]; "x-scheme-handler/chrome" = [ "chromium.desktop" ];
"application/x-extension-htm" = [ "firefox.desktop" ]; "application/x-extension-htm" = [ "chromium.desktop" ];
"application/x-extension-html" = [ "firefox.desktop" ]; "application/x-extension-html" = [ "chromium.desktop" ];
"application/x-extension-shtml" = [ "firefox.desktop" ]; "application/x-extension-shtml" = [ "chromium.desktop" ];
"application/xhtml+xml" = [ "firefox.desktop" ]; "application/xhtml+xml" = [ "chromium.desktop" ];
"application/x-extension-xhtml" = [ "firefox.desktop" ]; "application/x-extension-xhtml" = [ "chromium.desktop" ];
"application/x-extension-xht" = [ "firefox.desktop" ]; "application/x-extension-xht" = [ "chromium.desktop" ];
"application/x-mozilla-bookmarks" = [ "firefox.desktop" ]; "application/x-mozilla-bookmarks" = [ "chromium.desktop" ];
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ]; "x-scheme-handler/msteams" = [ "chromium.desktop" ];
"x-scheme-handler/zoomus" = [ "chromium.desktop" ];
}; };
addedAssociations = defaultApplications; addedAssociations = defaultApplications;
}; };