A set of Nix Flakes and scripts to get Office 365 working on Linux without virtualization. - Tombert/office365_flake
Multiple people have told me that their biggest hangup for switching to Linux from Windows is the lack of the desktop version of Microsoft Office, and they don't want to run a VM to get around it.
I recently fell into a bunch of free time with a Claude Max subscription, so I got Fable to hack at this until it worked! And with this, we have Microsoft Office running on Linux, with no Windows in sight!
I can't promise that this will work on everyone's computer, but I did put this all in Nix Flakes, so ideally it should be relatively reproducible on any Linux system with the Nix package manager and Flakes enabled. Also, it does not work very well with X, but Wayland appears to work fine.
This is not warez. You need a valid license for Office 365 for this to work. You also need to register on Microsoft's website in a browser; the flow for registering in the app proved to be tricky and not worth pursuing.
This is more proof of concept than anything else; I have no doubt that there are bugs and improvements to be made. I have only tested this with NixOS on Sway and KDE, and as stated it only really works with Wayland and the absolute latest GE-Proton, but I believe it would work fine with Gnome or any other Wayland desktop.
Full disclosure, Claude Code with Fable did the vast vast majority of the work on this. I ended up primarily just reading log messages and complaining back to it.
91 comments
Come to think of it, this is a good proposal for EU, thanks for the USB-C, by the way :)
I liked that because it's still an open format.
That said, whether or not it should be the case, a lot of people want specifically proper noun Microsoft Office (TM), not something "as good or better" than Microsoft Office.
I think getting people people towards a less horrible computing setup, for most people, requires it being done incrementally.
None of my excel sheets are just numbers, they're tied to database pulls and those dont work either.
Just trying to do the same things like merge cells I'm searching through a bunch of menus wondering what the hell it's called.
Theres a gui that looks similar but not enough. If they really want adoption, they need to completely add a office-clone mode and accept the consequences.
What specifically breaks? My understanding is that the modern version of Office is in reality a combination of many things: the licensing layer, the .NET bits, the Click-to-Run packaging, and finally the app. If it turns out that the real hard part is the licensing/activation flow rather than the app itself, that is a more interesting discovery in that the problem is less about the app itself and more about how the distribution works. Which might also explain why it got easier to tackle.
The hardest part was the activation, but some patience with Claude seemed to get that working.
At least with Sway, I had trouble getting anything with X11 working, particularly anything involve "pop ups". That includes right-click menus and stuff like that. Wayland works much better.
It also took a very long time to get the dictionary loaded for spell-check, and then a very long time to get the red squigglies working.
? Sway is a Wayland compositor
All that said, there are a lot of people who want the absolute latest MS Office. I don't get it either.
I absolutely love Nix Flakes; they feel, to me, like what Docker was supposed to be. A little self-contained packaged environment that gives you a place to do any kind of custom hacks deterministically.
This is a very useful project for me, because I occasionally need real Excel.
I actually think a lot of people cared enough to do this; the entire Wine project sort of exists specifically because people want Windows software on Linux.
I know multiple people who have said that they won't use Linux specifically because it doesn't have the full-fat desktop version Office on there.
"Unnecessary"? Sure, I guess, I don't like MS Office and I don't use it, but a lot of people seem to really like it, whether or not they should.
If this were a proof of concept and you had the ability to say what you did different to make it work better than previous attempts that would be great, but i don't think you know.
Read the full thread on Hacker News →
Related stories
- Hacker News · 3 points · 3 days ago
- Hacker News · 15 points · 13 days ago
- Launch HN: Vespper (YC F24) – SOTA Docx MCPvespper.comHacker News · 31 points · 2 days ago
- Hacker News · 1 points · 9 days ago
- Hacker News · 1 points · 3 days ago
- Hacker News · 1 points · 1 day ago