1
1
Fork 0
nixos/options/custom/programs/libreoffice.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

28 lines
682 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.programs.libreoffice;
in
{
options.custom.programs.libreoffice = {
enable = mkOption { default = false; };
package = mkOption { default = pkgs.libreoffice-fresh; };
};
config = mkIf cfg.enable {
# https://www.libreoffice.org
environment.systemPackages = [ cfg.package ];
#!! Options not available, files synced
home-manager.users.${config.custom.username}.home.file.".config/libreoffice/4/user".source =
config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink
"/home/${config.custom.username}/SYNC/linux/config/libreoffice/user";
};
}