{ lib, config, pkgs, inputs, outputs, home-manager, osConfig ? null, ... }: with lib; let osConfigValue = if osConfig != null then osConfig else {}; cfg = if osConfigValue ? roles && builtins.hasAttr "gnome-calendar" osConfigValue.roles then osConfigValue.roles."gnome-calendar" else { enable = false; }; in { # options.roles.gnome-calendar = { enable = lib.mkEnableOption "gnome calendar"; }; config = mkIf cfg.enable { home.packages = with pkgs; [ gnome-calendar gnome-control-center evolution evolution-data-server gnome-keyring ]; }; }