diff --git a/modules/config/system-path.nix b/modules/config/system-path.nix index 7e04af21997..03256aa9596 100644 --- a/modules/config/system-path.nix +++ b/modules/config/system-path.nix @@ -91,14 +91,20 @@ let description = '' The packages you want in the boot environment. ''; + apply = list: pkgs.buildEnv { name = "system-path"; paths = list; - inherit (cfg) pathsToLink; - ignoreCollisions = true; + postBuild = + '' + if [ -x $out/bin/update-mime-database -a -d $out/share/mime/packages ]; then + $out/bin/update-mime-database -V $out/share/mime + fi + ''; }; + }; };