{ lib, pkgs, config, ... }: let browser = "firefox"; iconPrefix = ".local/share/icons/hicolor/scalable/apps"; newWindow = "${browser} --new-window"; googleCalendarIcon = pkgs.callPackage (import ../../utils/make-icon.nix { name = "google-calendar"; url = "https://ssl.gstatic.com/calendar/images/dynamiclogo_2020q4/calendar_6_2x.png"; sha256 = "sha256-IODUWX9m0iwunJWPJv1kw5gfgDPvAZtmD8vcSTEBjsQ="; }) { }; in { home.packages = [ googleCalendarIcon ]; # UpdamkIconPkg te icon cache home.activation = { updateIconCache = lib.hm.dag.entryAfter [ "linkGeneration" ] '' $DRY_RUN_CMD ${pkgs.gtk3}/bin/gtk-update-icon-cache -t -f ~/.local/share/icons/hicolor ''; }; home.file = { "${iconPrefix}/notion.svg".text = '' ''; }; xdg.desktopEntries = { notion = { name = "Notion"; genericName = "Note"; exec = "${newWindow} https://notion.so"; comment = "Note Take Application"; icon = "${config.home.homeDirectory}/${iconPrefix}/notion.svg"; terminal = false; categories = [ "Office" "Utility" ]; }; google-calendar = { name = "Google Calendar"; genericName = "Calendar"; exec = "${pkgs.xdg-utils}/bin/xdg-open https://calendar.google.com/u/2/r"; comment = "Google Calendar"; icon = "google-calendar"; terminal = false; categories = [ "Office" ]; }; }; }