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
|
2024-11-17 23:27:14 +00:00
|
|
|
home-manager.users.${config.custom.username} = {
|
2024-11-24 19:12:23 +00:00
|
|
|
xdg.configFile."libreoffice/4/user" = {
|
2024-11-17 23:27:14 +00:00
|
|
|
force = true;
|
|
|
|
source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/linux/config/libreoffice/user";
|
|
|
|
};
|
|
|
|
};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
}
|