{ config, pkgs, lib, ... }: let cfg = config.ctucxConfig.programs.libreoffice; in { options = { ctucxConfig.programs.libreoffice = { enable = lib.mkEnableOption "libreoffice office suite"; }; }; config = lib.mkIf cfg.enable { home-manager.users.katja = { home = { packages = [ pkgs.libreoffice-fresh ]; }; xdg = { desktopEntries = { impress = { name = "LibreOffice Impress"; settings = { NoDisplay = "true"; }; }; math = { name = "LibreOffice Math"; settings = { NoDisplay = "true"; }; }; base = { name = "LibreOffice Base"; settings = { NoDisplay = "true"; }; }; draw = { name = "LibreOffice Draw"; settings = { NoDisplay = "true"; }; }; }; }; }; }; }