{ config, lib, pkgs, ... }: { options.my.apps.office.enable = lib.mkEnableOption "office applications and productivity tools"; config = lib.mkIf config.my.apps.office.enable { environment.variables.CALIBRE_USE_SYSTEM_THEME = "1"; users.users = let userLib = import ../lib.nix { inherit lib; }; packages = builtins.attrValues { inherit (pkgs) jre17_minimal # for libreoffice extensions libreoffice # office, but based & european calibre # ugly af eBook library manager newsflash # feed reader, syncs with nextcloud furtherance # I packaged this one tehee track time utility # planify # let's pretend I will organize my tasks ; }; in userLib.mkUserPackages config.my.toggleUsers.apps packages; }; }