diff --git a/nix/configurations/vanadium/home/misc.nix b/nix/configurations/vanadium/home/misc.nix index 7fc0c785..33210803 100644 --- a/nix/configurations/vanadium/home/misc.nix +++ b/nix/configurations/vanadium/home/misc.nix @@ -55,15 +55,10 @@ type = "fcitx5"; }; - xdg.mimeApps = - let - associations = { - "x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ]; - }; - in - { - enable = true; - associations.added = associations; - defaultApplications = associations; + xdg.mimeApps = { + enable = true; + defaultApplications = { + "x-scheme-handler/mailto" = [ "org.gnome.Evolution.desktop" ]; }; + }; } diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index a05cb216..f7030c31 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -102,7 +102,6 @@ pkgs.mousai pkgs.localsend # file share with iOS pkgs.minder # mindmap tool - pkgs.mkvtoolnix # social pkgs.iamb diff --git a/nix/homeModules/common/firefox.nix b/nix/homeModules/common/firefox.nix index d479571b..556a528d 100644 --- a/nix/homeModules/common/firefox.nix +++ b/nix/homeModules/common/firefox.nix @@ -129,20 +129,15 @@ in }; }; - xdg.mimeApps = - let - # source: https://unix.stackexchange.com/a/684582 - associations = { - "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"; - }; - in - lib.mkIf cfg.enable { - enable = true; - associations.added = associations; - defaultApplications = associations; + xdg.mimeApps = lib.mkIf cfg.enable { + enable = true; + # source: https://unix.stackexchange.com/a/684582 + 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"; }; + }; } diff --git a/nix/homeModules/common/sioyek.nix b/nix/homeModules/common/sioyek.nix index 93ee594d..6547d74d 100644 --- a/nix/homeModules/common/sioyek.nix +++ b/nix/homeModules/common/sioyek.nix @@ -3,9 +3,6 @@ lib, ... }: -let - cfg = config.programs.sioyek; -in { programs.sioyek = { bindings = { @@ -31,15 +28,10 @@ in config.should_launch_new_window = "1"; }; - xdg.mimeApps = - let - associations = { - "application/pdf" = [ "sioyek.desktop" ]; - }; - in - lib.mkIf cfg.enable { - enable = true; - associations.added = associations; - defaultApplications = associations; + xdg.mimeApps = lib.mkIf config.programs.sioyek.enable { + enable = true; + defaultApplications = { + "application/pdf" = [ "sioyek.desktop" ]; }; + }; }