{ pkgs, ... }:
{
sane.programs.libreoffice = {
# variants: "still" (stable?), "fresh" (beta?)
# packageUnwrapped = pkgs.libreoffice-bin;
# packageUnwrapped = pkgs.libreoffice-still;
packageUnwrapped = pkgs.libreoffice-fresh;
sandbox.method = "bwrap";
sandbox.whitelistWayland = true;
sandbox.autodetectCliPaths = true;
sandbox.extraHomePaths = [
# allow a spot to save files.
# with bwrap sandboxing, saving to e.g. ~/ succeeds but the data is inaccessible outside the sandbox,
# easy to shoot yourself in the foot!
"tmp"
];
buildCost = 3;
# disable first-run stuff
fs.".config/libreoffice/4/user/registrymodifications.xcu".symlink.text = ''
- false
- false
'';
# - 1667693880
# - 1667693880
};
}