{ pkgs, lib, config, ... }: let cfg = config._archetypes.collections.desktop.office; in { options._archetypes.collections.desktop.office = { enable = lib.mkEnableOption "install office software"; }; config = lib.mkIf cfg.enable { environment.systemPackages = with pkgs; [ hunspell # Spell checking in libreoffice hunspellDicts.en_US kdePackages.okular libreoffice pdfchain thunderbird ]; }; }