{ 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. "${config.users.users.${user}.home}/.gnupg/common.conf" = { text = '' # keyboxd configuration collides with gpg keymanager.app # use-keyboxd ''; }; "${config.users.users.${user}.home}/.ssh/authorized_keys" = { text = '' sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAILVdAx+U1xhcJmh1hRaF0CVB0ivIF/U0oIbAWYPwko4iAAAABHNzaDo= Yubikey 35775013 sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIIjnJyJUDnia6ZWPRa5iSBKCb+DMGmFtiFa+9gkeiTwQAAAABHNzaDo= Yubikey 36431751 sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFhuPQUHUHchx8wHVCciMi6etzZStkpECbG/r/1imy+kAAAABHNzaDo= Yubikey 36431881 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILCEBZrQ9F3nLhEM9uqdPijut11vhYkdmLtj7gT/zgV3 Key Nov 2024 ''; }; # 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"; }