From 826e1968914e8015f9530eaa0799b384530e116e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 5 Jan 2021 23:32:29 +0100 Subject: [PATCH] home/mimeapps: Force overwrite of mimeapps.list --- users/simon/modules/xdg.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + }; }