From ae7223b2137a31ca152df32933ff8eb457bde317 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 8 Nov 2024 20:57:45 -0800 Subject: [PATCH] refactor: move mime-apps for all architectures --- users/youwen/linux/packages/x86_64/default.nix | 11 ----------- users/youwen/linux/programs/default.nix | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/users/youwen/linux/packages/x86_64/default.nix b/users/youwen/linux/packages/x86_64/default.nix index 39b0b8e..d0cc5a4 100644 --- a/users/youwen/linux/packages/x86_64/default.nix +++ b/users/youwen/linux/packages/x86_64/default.nix @@ -23,17 +23,6 @@ in ++ [ zen-browser ] ); - xdg.mimeApps = { - enable = true; - defaultApplications = { - "text/html" = [ "zen.desktop" ]; - "x-scheme-handler/http" = [ "zen.desktop" ]; - "x-scheme-handler/https" = [ "zen.desktop" ]; - "x-scheme-handler/about" = [ "zen.desktop" ]; - "x-scheme-handler/unknown" = [ "zen.desktop" ]; - }; - }; - home.sessionVariables = { DEFAULT_BROWSER = "${zen-browser}/bin/zen"; }; diff --git a/users/youwen/linux/programs/default.nix b/users/youwen/linux/programs/default.nix index 13764c8..173721b 100644 --- a/users/youwen/linux/programs/default.nix +++ b/users/youwen/linux/programs/default.nix @@ -33,6 +33,17 @@ }; }; + xdg.mimeApps = { + enable = true; + defaultApplications = { + "text/html" = [ "zen.desktop" ]; + "x-scheme-handler/http" = [ "zen.desktop" ]; + "x-scheme-handler/https" = [ "zen.desktop" ]; + "x-scheme-handler/about" = [ "zen.desktop" ]; + "x-scheme-handler/unknown" = [ "zen.desktop" ]; + }; + }; + # programs.firefox = { # enable = true; # # package = pkgs.librewolf;