From 792c23802cfb41b51f74be7f1662a6f76f85b3a5 Mon Sep 17 00:00:00 2001 From: oddlama Date: Tue, 5 Sep 2023 15:03:24 +0200 Subject: [PATCH] feat: add mime defaults to firefox --- users/myuser/graphical/firefox.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/users/myuser/graphical/firefox.nix b/users/myuser/graphical/firefox.nix index 56ec1fb..3ccc39e 100644 --- a/users/myuser/graphical/firefox.nix +++ b/users/myuser/graphical/firefox.nix @@ -8,4 +8,15 @@ # To allow vaapi access for hardware acceleration MOZ_DISABLE_RDD_SANDBOX = 1; }; + + home.persistence."/state".directories = [ + "Downloads" + ]; + + xdg.mimeApps.defaultApplications = { + "text/html" = ["firefox.desktop"]; + "text/xml" = ["firefox.desktop"]; + "x-scheme-handler/http" = ["firefox.desktop"]; + "x-scheme-handler/https" = ["firefox.desktop"]; + }; }