Struggling with autostart

Trying to get stalonetray to start automatically. well gosh how close am I?

let                                                                 
  stalonetray_autostart = (pkgs.makeAutostartItem { name = "stalonetray"; package = pkgs.stalonetray; srcPrefix = "net.sourceforge.";  });    
in

and then I have stalonetray and stalonetray_autostart in my package list

here’s the rebuild:

sudo nixos-rebuild switch
[sudo] password for dot: 
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/3j99qlijzzg4v9gb6mfgpdjrq4a4r8f2-autostart-stalonetray.drv
  /nix/store/m780y7awxpcdcg0jznnn6pxhkx73psg8-system-path.drv
  /nix/store/42mafm3zf16v47szhh54w7ln5qws34r9-unit-accounts-daemon.service.drv
  /nix/store/6fgp5rs4cc6yiqargfm842ppl4v25x0g-unit-polkit.service.drv
  /nix/store/rxr7am6vzd4njqvz9vlpzmqayvkjr8hc-dbus-1.drv
  /nix/store/c0d7flkcsbf1bsld8kvmwxalfwi0p4s5-unit-dbus.service.drv
  /nix/store/kk6fdiaixff3jj0lddsbfzi6ijvgpq0b-unit-systemd-fsck-.service.drv
  /nix/store/qapf7krkyrrvrs1mv2vs7ln6bx168rhv-system-units.drv
  /nix/store/lp7jlibddmk1v4yw7hfwxwpj384pz8v9-unit-dbus.service.drv
  /nix/store/sw4gk6aiv2ninqwfqm24lbsllxpclfsm-user-units.drv
  /nix/store/qnrxvh1l7afywbv1c145y92nz7x9gdbc-etc.drv
  /nix/store/jiwvv4vaqklkdxvcigix7dcm4l3ww1q6-nixos-system-nixos-20.03.2411.30fb4e1e206.drv
building '/nix/store/3j99qlijzzg4v9gb6mfgpdjrq4a4r8f2-autostart-stalonetray.drv'...
cp: cannot stat '/nix/store/fiypvvxkx58ijx094aglaal7ph7rar8g-stalonetray-0.8.3/share/applications/net.sourceforge.stalonetray.desktop': No such file or directory
builder for '/nix/store/3j99qlijzzg4v9gb6mfgpdjrq4a4r8f2-autostart-stalonetray.drv' failed with exit code 1
cannot build derivation '/nix/store/m780y7awxpcdcg0jznnn6pxhkx73psg8-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/jiwvv4vaqklkdxvcigix7dcm4l3ww1q6-nixos-system-nixos-20.03.2411.30fb4e1e206.drv': 1 dependencies couldn't be built
error: build of '/nix/store/jiwvv4vaqklkdxvcigix7dcm4l3ww1q6-nixos-system-nixos-20.03.2411.30fb4e1e206.drv' failed
1 Like

There is problem. Could it have something to do with the setting

and why is that prefix even necessary? I don’t know anything about autostart items or that package, just poking around.