From de1aa3f49318ac0224efded1e892d478e2be175a Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 15 Apr 2024 16:15:39 +0200 Subject: [PATCH] [xdg] unified config --- nix/home/xdg/xdg.nix | 7 +++++++ nix/systems/desktop.nix | 10 ---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/nix/home/xdg/xdg.nix b/nix/home/xdg/xdg.nix index 881eb02..24b0e01 100644 --- a/nix/home/xdg/xdg.nix +++ b/nix/home/xdg/xdg.nix @@ -13,6 +13,13 @@ "application/pdf" = ["org.gnome.Evince.desktop"]; "application/x-pdf" = ["org.gnome.Evince.desktop"]; + # firefox + "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"]; + # images "image/bmp" = [ "org.gnome.Loupe.desktop" ]; "image/gif" = [ "org.gnome.Loupe.desktop" ]; diff --git a/nix/systems/desktop.nix b/nix/systems/desktop.nix index bb30d1a..62a7940 100644 --- a/nix/systems/desktop.nix +++ b/nix/systems/desktop.nix @@ -13,16 +13,6 @@ xdg-desktop-portal-wlr ]; - # xdg mime - xdg.mime.enable = true; - xdg.mime.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"; - }; - # gnome services.xserver.displayManager.gdm.enable = true; services.xserver.desktopManager.gnome.enable = true;