From 6d07f91e201fe6dc46a9dd7186c521d9f9bfcbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Sun, 14 Apr 2024 20:00:43 +0200 Subject: [PATCH] make firefox the default browser --- home/jonas/home.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/home/jonas/home.nix b/home/jonas/home.nix index a64253b..ab275b3 100644 --- a/home/jonas/home.nix +++ b/home/jonas/home.nix @@ -5,12 +5,24 @@ ./plasma.nix ./firefox.nix ]; - + # Home Manager needs a bit of information about you and the paths it should # manage. home.username = "jonas"; home.homeDirectory = "/home/jonas"; + xdg.mimeApps = { + enable = true; + + defaultApplications = { + "text/html" = "firefox.desktop"; + "x-scheme-handler/http" = "firefox.desktop"; + "x-scheme-handler/https" = "firefox.desktop"; + "x-scheme-handler/about" = "firefox.desktop"; + "x-scheme-handler/unknown" = "firefox.desktop"; + }; + }; + # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release # introduces backwards incompatible changes. @@ -73,7 +85,7 @@ "python" "rust" "thefuck" - ]; + ]; theme = "bureau"; }; };