add xdg.mimeApps to home.nix for default browser config

This commit is contained in:
Gabriella Bere 2024-08-23 11:27:46 +01:00
parent 200c5bb064
commit fe94bb10d9

View file

@ -69,6 +69,16 @@
home.sessionVariables = {
# EDITOR = "emacs";
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"text/html" = "${lib.getExe pkgs.librewolf}";
"x-scheme-handler/http" = "${lib.getExe pkgs.librewolf}";
"x-scheme-handler/https" = "${lib.getExe pkgs.librewolf}";
"x-scheme-handler/about" = "${lib.getExe pkgs.librewolf}";
"x-scheme-handler/unknown" = "${lib.getExe pkgs.librewolf}";
};
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;