diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index ef3b1b9..d462161 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -36,7 +36,7 @@ "$terminal" = "foot"; "$menu" = "rofi -show combi -combi-modes drun,ssh,run -theme ~/.config/rofi/launcher/style.rasi"; - "$browser" = "firefox"; + "$browser" = "librewolf"; exec-once = [ "nm-applet" diff --git a/home-manager/features/linux-desktop.nix b/home-manager/features/linux-desktop.nix index 8e7a9b8..9fdfe47 100644 --- a/home-manager/features/linux-desktop.nix +++ b/home-manager/features/linux-desktop.nix @@ -83,4 +83,16 @@ platformTheme.name = "adwaita"; style.name = "adwaita-dark"; }; + + # Default apps + xdg.mime.enable = true; + xdg.mimeApps.defaultApplications = { + "text/html" = [ "librewolf.desktop" ]; + "default-web-browser" = [ "librewolf.desktop" ]; + "x-scheme-handler/http" = [ "librewolf.desktop" ]; + "x-scheme-handler/https" = [ "librewolf.desktop" ]; + "x-scheme-handler/about" = [ "librewolf.desktop" ]; + "x-scheme-handler/unknown" = [ "librewolf.desktop" ]; + }; + environment.sessionVariables.DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf"; }