1
1
Fork 0
nixos/options/custom/programs/libreoffice.nix

28 lines
710 B
Nix
Raw Normal View History

{
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} = {
xdg.configFile.".config/libreoffice/4/user" = {
force = true;
source = config.home-manager.users.${config.custom.username}.lib.file.mkOutOfStoreSymlink "${config.custom.sync}/linux/config/libreoffice/user";
};
};
};
}