diff --git a/hosts/homes/ambroisie@bazin/default.nix b/hosts/homes/ambroisie@bazin/default.nix index 365b70d..dddfa15 100644 --- a/hosts/homes/ambroisie@bazin/default.nix +++ b/hosts/homes/ambroisie@bazin/default.nix @@ -38,6 +38,14 @@ }; }; + xdg = { + mime-apps = { + applications = { + browser = "garcon_host_browser.desktop"; + }; + }; + }; + zsh = { notify = { enable = true; diff --git a/modules/home/discord/default.nix b/modules/home/discord/default.nix index bfa5d40..740e788 100644 --- a/modules/home/discord/default.nix +++ b/modules/home/discord/default.nix @@ -21,5 +21,9 @@ in # Do not keep me from using the app just to force an update SKIP_HOST_UPDATE = true; }; + + xdg.mimeApps.defaultApplications = { + "x-scheme-handler/discord" = "discord.desktop"; + }; }; } diff --git a/modules/home/xdg/mime-apps.nix b/modules/home/xdg/mime-apps.nix index f704183..276de4f 100644 --- a/modules/home/xdg/mime-apps.nix +++ b/modules/home/xdg/mime-apps.nix @@ -11,7 +11,9 @@ let in { options.my.home.xdg.mime-apps = with lib; { - enable = my.mkDisableOption "XDG MIME Applications configuration"; + enable = mkEnableOption "XDG MIME Applications configuration" // { + default = config.my.home.xdg.enable; + }; applications = lib.mapAttrsRecursive (_: mkMimeAppOption) { archive = "archive manager"; @@ -269,7 +271,6 @@ in # "image/x-eps" = app.media.document.pdf # FIXME: additionally interesting, but not necessary - # "x-scheme-handler/discord" = [ "discord.desktop" ]; # "x-scheme-handler/msteams" = [ "teams.desktop" ]; # "x-scheme-handler/slack" = [ "slack.desktop" ]; };