Created
October 27, 2017 17:36
-
-
Save dustinlacewell-wk/2d37937b5d9e085466800094563fcafd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
with import <home-manager/modules/lib/dag.nix> { inherit lib; }; | |
{ | |
home.activation.hammerspoon = dagEntryAfter["linkgeneration"] (let | |
app = pkgs.fetchzip { | |
name = "Hammerspoon.app"; | |
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/0.9.57/Hammerspoon-0.9.57.zip"; | |
sha256 = "12j9vylcxb7i3bn0v5x6zbxmnyyp7gh4am4vg48yv3hb54i73klx"; | |
}; | |
in '' | |
osascript << EOF | |
tell application "Finder" | |
set mySource to POSIX file "${app}" as alias | |
make new alias to mySource at POSIX file "${config.home.homeDirectory}/Applications/" | |
set name of result to "Hammerspoon.app" | |
end tell | |
EOF | |
''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment