diff --git a/modules/misc/xdg-mime.nix b/modules/misc/xdg-mime.nix index f41e3160f..598cab913 100644 --- a/modules/misc/xdg-mime.nix +++ b/modules/misc/xdg-mime.nix @@ -27,6 +27,11 @@ in { home.packages = [ # Explicitly install package to provide basic mime types. pkgs.shared-mime-info + + # Make sure the target directories will be real directories. + (pkgs.runCommandLocal "dummy-xdg-mime-dirs" { } '' + mkdir -p $out/share/{applications,mime/packages} + '') ]; home.extraProfileCommands = ''