2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.programs.libreoffice;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
2024-09-09 00:22:14 +00:00
|
|
|
options.custom.programs.libreoffice = {
|
2024-09-13 01:50:53 +00:00
|
|
|
enable = mkOption {default = false;};
|
|
|
|
package = mkOption {default = pkgs.libreoffice-fresh;};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://www.libreoffice.org
|
2024-09-13 01:50:53 +00:00
|
|
|
environment.systemPackages = [cfg.package];
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
#!! 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
|
2024-09-13 01:50:53 +00:00
|
|
|
"/home/${config.custom.username}/SYNC/linux/config/libreoffice/user";
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
}
|