{ lib, pkgs, config, ... }: let browser = "firefox-nightly"; iconPrefix = ".local/share/icons/hicolor/scalable/apps"; newWindow = "${browser} --new-window"; mkIconPkg = pkgs.callPackage ../../utils/make-icon.nix { }; in { # Update 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" ]; }; }; }