Unable to open links in Ferdium

Hi!

I am running Ferdium (messenger aggregation app based on Electron) with a systemd service file like this:

{ pkgs, ... }:
{
  environment.systemPackages = with pkgs; [
    ferdium
  ];

  systemd.user.services.ferdium = {
    description = "Start Ferdium after graphical login";
    wantedBy = [ "graphical-session.target" ];
    partOf = [ "graphical-session.target" ];
    serviceConfig = {
      ExecStart = "${pkgs.ferdium}/bin/ferdium %U";
      Restart = "on-failure";
      RestartSec = "5s";
    };
  };
}

But I’ve noticed that if I do this, I am unable to open any link in any of the messengers I am using in Ferdium. This does not happen if I run Ferdium from terminal or from the desktop environment (KDE). After doing some experimentation I was able to figure out that this is related to the PATH being set in the systemd service file:

[Unit]
Description=Start Ferdium after graphical login
PartOf=graphical-session.target

[Service]
Environment="LOCALE_ARCHIVE=/nix/store/0zy5x9by81q45qrc1i34wsgf57jg1vni-glibc-locales-2.40-66/lib/locale/locale-archive"
Environment="PATH=/nix/store/xbp2j3z0lhizr5vvzff4dgdcxgs8i2w7-coreutils-9.7/bin:/nix/store/bn3p3g6lsl0wa4ybrvik5rk4j5h3q7lb-findutils-4.10.0/bin:/nix/store/5ygilvgz6l47fw3x5ylb0cz1afgc3737-gnugrep-3.12/bin:/nix/store/i74283mw5bncn16i0zbz0lvvq4sn0q87-gnused-4.9/bin:/nix/store/hzfgij1agxgbgjc5gy548x7chcm9dz84-systemd-257.7/bin:/nix/store/xbp2j3z0lhizr5vvzff4dgdcxgs8i2w7-coreutils-9.7/sbin:/nix/store/bn3p3g6lsl0wa4ybrvik5rk4j5h3q7lb-findutils-4.10.0/sbin:/nix/store/5ygilvgz6l47fw3x5ylb0cz1afgc3737-gnugrep-3.12/sbin:/nix/store/i74283mw5bncn16i0zbz0lvvq4sn0q87-gnused-4.9/sbin:/nix/store/hzfgij1agxgbgjc5gy548x7chcm9dz84-systemd-257.7/sbin"
Environment="TZDIR=/nix/store/mknxn79qjdcn3mw3vbpimqqhiqyyksgm-tzdata-2025b/share/zoneinfo"
ExecStart=/nix/store/7hlsgaz6d7n2rfppaz32hjk4y98p0prr-ferdium-7.1.0/bin/ferdium %U

[Install]
WantedBy=graphical-session.target

If I run Ferdium from the terminal, setting the same path for the application as in this service file, Ferdium will show the mentioned behavior with the links.

So my question is: How do I fix that? Is there a way to not set the path/use the path variable from the current user session? Thanks in advance for any help.