diff --git a/users/simon/modules/xdg.nix b/users/simon/modules/xdg.nix index a57014d..5d79ae9 100644 --- a/users/simon/modules/xdg.nix +++ b/users/simon/modules/xdg.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, lib, ... }: { xdg.mimeApps = { @@ -9,4 +9,9 @@ "image/jpeg" = "mpv.desktop"; }; }; + # Some programs overwrite the mimeapps.list symlink with a normal file which + # makes home-manager activation fail + xdg.configFile = lib.mkIf config.sbruder.gui.enable { + "mimeapps.list".force = true; + }; }