From 0287a5e87c0594b6fde002dc16b35f538260bef1 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 18 Nov 2024 09:19:51 +0100 Subject: [PATCH] chore(gaspard): Added simple xdg mime type config --- de/hypr/default.nix | 1 + users/gaspard.nix | 25 ++++++++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/de/hypr/default.nix b/de/hypr/default.nix index af7d0a6..37679bd 100644 --- a/de/hypr/default.nix +++ b/de/hypr/default.nix @@ -39,6 +39,7 @@ home.packages = with pkgs; [ egl-wayland # For NVIDIA compatibility + xdg-utils xdg-desktop-portal-hyprland # Common DE packages required in config wl-clipboard diff --git a/users/gaspard.nix b/users/gaspard.nix index cd4c9f5..2476a0a 100644 --- a/users/gaspard.nix +++ b/users/gaspard.nix @@ -1,11 +1,4 @@ {...}: { - home.username = "gaspard"; - home.homeDirectory = "/home/gaspard"; - home.stateVersion = "24.05"; - - programs.home-manager.enable = true; - programs.direnv.enable = true; - imports = [ ../shell ../term @@ -14,4 +7,22 @@ ../gaming ../themes/pomme.nix ]; + + home.username = "gaspard"; + home.homeDirectory = "/home/gaspard"; + home.stateVersion = "24.05"; + + programs.home-manager.enable = true; + programs.direnv.enable = true; + + 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"; + }; + }; }