From 64a3566107230fbe8d1134c9e2690345653b71d2 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 18 Sep 2022 22:02:23 -0400 Subject: [PATCH] Make firefox the default web browser --- home-manager/linux/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home-manager/linux/default.nix b/home-manager/linux/default.nix index 5326287..553f503 100644 --- a/home-manager/linux/default.nix +++ b/home-manager/linux/default.nix @@ -78,7 +78,14 @@ with lib; with nLib; { enable = true; # Manage mime associations mime.enable = true; - mimeApps.enable = true; + mimeApps = { + enable = true; + # Set firefox as the default browser + defaultApplications = { + "x-scheme-handler/https" = [ "firefox.desktop" ]; + "x-scheme-handler/http" = [ "firefox.desktop" ]; + }; + }; }; }; }