Running Overleaf on NixOS

I’d really like to get overleaf to run via my NixOS configuration to get some level of declarativity and reproducibility.

I am aware that there have been unsuccessful attempts to package it for nix:

I have Overleaf running via its official docker setup on Ubuntu and Manjaro, but it’s always a pain to redo all the steps and I’d like to just do services.overleaf.enable=true under NixOS of course :slightly_smiling_face:

I have never juggled with docker on NixOS before and don’t know how to turn that overleaf /bin/up (docker compose I think?) into something NixOS config eats.

Any hints are appreciated.

2 Likes

You could continue that PR if interested, it was closed due to the PR author not being interested. Cherry-pick their commits to preserve authorship, you can put yourself as co-author if you need to amend their commits.

Indeed, I think it’s not that complicated to either finish the PR or vendor the code in whatever NixOS configuration. You just have to update it to current overleaf version. At the end I am not an overleaf user anymore and I think it’s a heavy package to maintain so we decided to close the PR but I have overleaf deployed for more than a year and it was working as expected.

1 Like