nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
6.82k stars 1.78k forks source link

Possible LibreOffice `programs` option? #5612

Open wale opened 3 months ago

wale commented 3 months ago

Description

LibreOffice, the de-facto productivity software suite, already has a package available in nixpkgs, but the current status quo doesn't allow for declarative customisation of any of the facets of LibreOffice (e.g. extensions, preferences) (see: https://github.com/NixOS/nixpkgs/issues/235416)

Having a home-manager option would make for a simplistic declarative configuration of such configurations.

Caveats however, are that currently no LibreOffice extensions are packaged for Nix; however, with the exception of the Zotero reference manager, where the extension is currently bundled with the full package on nixpkgs.

IldenH commented 2 months ago
home.file.".config/libreoffice/4/user/registrymodifications.xcu".text = ''
<?xml version="1.0" encoding="UTF-8"?>
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<item oor:path="/org.openoffice.Setup/L10N"><prop oor:name="ooLocale" oor:op="fuse"><value>en-US</value></prop></item>
''

Sets the locale to en-US.

Kodi is currently the only home-manager module which uses toXML: https://github.com/search?q=repo%3Anix-community%2Fhome-manager+toXML&type=code

Looking at that module it seems quite annoying to configure.