I expect this is an error:
I have onedrive 2.4.25 but when I execute “systemctl --user status onedrive@onedrive.service”, it’s clear that service is looking to start 2.4.23:
The onedrive NixOS module doesn’t create systemd units under $HOME, so you must have made those manually at some point. Additionally, the NixOS module runs a launcher that looks for config under $HOME/.config/onedrive in order to run the various instances.
I suggest blowing away your local unit files and then do systemctl –user daemon-reload followed by systemctl –user start onedrive-launcher.
I’m sure I did not create the following file. It has references to specific nix store directories - I’m sure it was auto generated.
Maybe you copied in the generated file in order to test out some adjustments without having to rebuild your configuration every time? I have done that before and also being bitten by the “my manually used file is referencing something old”.
The nixos generated user units all end up under /etc/systemd/user. $HOME/.config/systemd isn’t touched.
What is the right way to recreate this file?
The module should have created the correct file under /etc/systemd/user.
I get it now, thanks!
For some unknown reason, I created the file in $HOME/.config/systemd. I removed it now as I see no use of it.
Then I reloaded the daemon and restarted the launcher.
All seems to work ok now.