2021-05-30 19:10:28 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.office;
|
|
|
|
in {
|
|
|
|
options.pub-solar.office = {
|
|
|
|
enable = mkEnableOption "Install office programs, also enables printing server";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
pub-solar.printing.enable = true;
|
|
|
|
|
|
|
|
# Gnome PDF viewer
|
|
|
|
programs.evince.enable = true;
|
|
|
|
home-manager = with pkgs;
|
|
|
|
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
|
|
home.packages = [
|
|
|
|
libreoffice-fresh
|
2022-04-30 13:13:20 +00:00
|
|
|
gnome.simple-scan
|
2021-05-30 19:10:28 +00:00
|
|
|
# Tools like pdfunite
|
|
|
|
poppler_utils
|
2022-04-09 12:24:51 +00:00
|
|
|
# tool for annotating PDFs
|
|
|
|
xournalpp
|
2021-05-30 19:10:28 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|