{ user, config, pkgs, ... }: let xdg_configHome = "${config.users.users.${user}.home}/.config"; xdg_dataHome = "${config.users.users.${user}.home}/.local/share"; xdg_stateHome = "${config.users.users.${user}.home}/.local/state"; inkscapeExtensionsHome = "${config.users.users.${user}.home}/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions"; hatchFillSource = pkgs.fetchzip { url = "https://gitlab.com/moini_ink/hatch_fill/-/archive/master/hatch_fill-master.tar.gz"; sha256 = "1m3qhvf158dngg7shwd33xhn3bawn9yxw2srv2k8qjn889wjvi82"; }; in { # Shared file definitions moved into the Darwin module set. # Raycast script so that "Run Emacs" is available and uses Emacs daemon "${xdg_dataHome}/bin/emacsclient" = { executable = true; text = '' #!/bin/zsh # # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Run Emacs # @raycast.mode silent # # Optional parameters: # @raycast.packageName Emacs # @raycast.icon ${xdg_dataHome}/img/icons/Emacs.icns # @raycast.iconDark ${xdg_dataHome}/img/icons/Emacs.icns if [[ $1 = "-t" ]]; then # Terminal mode ${pkgs.emacs}/bin/emacsclient -t $@ else # GUI mode ${pkgs.emacs}/bin/emacsclient -c -n $@ fi ''; }; "${inkscapeExtensionsHome}/hatch_fill.inx".source = "${hatchFillSource}/hatch_fill.inx"; "${inkscapeExtensionsHome}/hatch_fill.py".source = "${hatchFillSource}/hatch_fill.py"; }