Would it be better to use this instead of https://github.com/Philipp-M/nixos-config/blob/d69854eaf39df91ee49ea7053abe461c1397f4f1/configuration.nix#L23C8-L23C8 ?
system.replaceRuntimeDependencies = [ { original = pkgs.xdg-utils; replacement = pkgs.xdg-utils.overrideAttrs (oldAttrs: { postInstall = oldAttrs.postInstall + '' # "overwrite" xdg-open with handlr cp ${pkgs.writeShellScriptBin "xdg-open" "${pkgs.handlr}/bin/handlr open \"$@\""}/bin/xdg-open $out/bin/xdg-open ''; }); } ];
Would it be better to use this instead of https://github.com/Philipp-M/nixos-config/blob/d69854eaf39df91ee49ea7053abe461c1397f4f1/configuration.nix#L23C8-L23C8 ?
system.replaceRuntimeDependencies = [ { original = pkgs.xdg-utils; replacement = pkgs.xdg-utils.overrideAttrs (oldAttrs: { postInstall = oldAttrs.postInstall + '' # "overwrite" xdg-open with handlr cp ${pkgs.writeShellScriptBin "xdg-open" "${pkgs.handlr}/bin/handlr open \"$@\""}/bin/xdg-open $out/bin/xdg-open ''; }); } ];