Using Dropbox on Nixos

I don’t know if there is a written down policy about which user services should be a part of NixOS and which shouldn’t but FWIW, nixos/onedrive: init by SRGOM · Pull Request #77734 · NixOS/nixpkgs · GitHub on github was rejected

I do agree though, services would make using these packages much more user friendly.

Those are just dependencies.

We absolutely should have a module in NixOS - no reason not to.

1 Like

That is just standard systemd unit stuff. See here for descriptions of what each of those does.

There is a pull request for that now: nixos/dropbox: new module by romildo · Pull Request #85699 · NixOS/nixpkgs · GitHub

1 Like

Why aren’t you using NextSloud?
Everything is much simpler and more GB free (8 GB).
And it already exists in NixOS packages.

Can you clarify, in which file would this go? Also, given that now, June '23, there seems to be a dropbox package, is this still the way you’d do it?
Thanks

That earlier example would go into configuration.nix - please note that I no longer use dropbox (replaced it with maestral which is open source and doesn’t count against the 3 device maximum imposed by dropbox), so I don’t know if it still works.

Hi all. Sad to meet you all under such circumstances. Now that Maestral’s keys just expired, what do we all migrate to?

OK I have something:

On a hunch I switched from niri to kde plasma, and **the dropbox command started working**.

Previously, the dropbox client would start, tray icon show up, and dropbox would auth with the browser. Then after 10s it would auth again. And again, in a loop.

I guessed that perhaps the session wasn’t being saved properly in the keyring, and instead of deugging THAT I switched my entire DE to a known good state: plasma.enable = true; !

I don’t know if this helps anyone, but I will continue to post here as I figure out what the underlying problem is - I don’t want to be on plasma forever!

If anyone knows about how dropbox stores its session or how to debug keyring issues, please reply!

Hmm, the plot thickens.

I sat down at my laptop this morning, assuming I would need to follow the above dance of installing plasma to get dropbox working but… no.

Maestral was still working, no key errors, and when I replaced it with the dropbox package, it authed once and worked fine. (I replaced it because maestral is now abandoned)

I don’t really understand what could be the difference…

I don’t know what’s going on in your systems.

Personally, I currently use Dropbox via home-manager. Home-manager has a built-in module but it doesn’t quite work. So I use the fix from the Pull Request, except locally. I have this ./dropbox.nix file, definining a fixed-dropbox module and I can then import it and enable it with services.fixed-dropbox.enable = true;.

2 Likes