]> Skullheadx's Git Forge - nixos.git/commitdiff
make librewolf the default browser
authorSkullheadx <admonty1@protonmail.com>
Sun, 9 Nov 2025 03:59:48 +0000 (22:59 -0500)
committerSkullheadx <admonty1@protonmail.com>
Sun, 9 Nov 2025 03:59:48 +0000 (22:59 -0500)
TODO.md
home.nix

diff --git a/TODO.md b/TODO.md
index 542baa30f01e8755b54c32d0518d92031423a0f9..30c5d31c053c0384e6db5eb6f282d3c529c8b059 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -7,6 +7,7 @@
 ## Hyprland
 
 - [ ] fix startup tmux session
+- [x] make librewolf my default browser
 
 ### waybar
 
index 64fca89c4367fecd548a81c8f31b9a7e3da660c8..2d7d881fdc072277868ccd0594213e577cf27946 100644 (file)
--- a/home.nix
+++ b/home.nix
   #  /etc/profiles/per-user/andrew/etc/profile.d/hm-session-vars.sh
   #
   home.sessionVariables = {
+    BROWSER = "librewolf";
+    DEFAULT_BROWSER = "{$pkgs.librewolf}/bin/librewolf";
     NIXOS_OZONE_WL = "1";
   };
+  xdg.mimeApps = {
+    enable = true;
+    defaultApplications = {
+      "x-scheme-handler/http" = "librewolf.desktop";
+      "x-scheme-handler/https" = "librewolf.desktop";
+    };
+  };
 
   programs.brave.enable = true;