From 2d75530b6d95be66254e727323ddbc1a4b32b6be Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 13 Jan 2024 20:59:35 -0600 Subject: [PATCH] Floorp is a pretty cool browser --- user/app/browser/floorp.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 user/app/browser/floorp.nix diff --git a/user/app/browser/floorp.nix b/user/app/browser/floorp.nix new file mode 100644 index 0000000..9090b4d --- /dev/null +++ b/user/app/browser/floorp.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, wmType, font, ... }: + +{ + # Module installing as default browser + home.packages = [ pkgs.floorp ]; + + home.sessionVariables = { + DEFAULT_BROWSER = "${pkgs.floorp}/bin/floorp"; + }; + + xdg.mimeApps.defaultApplications = { + "text/html" = "floorp.desktop"; + "x-scheme-handler/http" = "floorp.desktop"; + "x-scheme-handler/https" = "floorp.desktop"; + "x-scheme-handler/about" = "floorp.desktop"; + "x-scheme-handler/unknown" = "floorp.desktop"; + }; + +}