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
until docker version > /dev/null | |
do | |
sleep 1 | |
done |
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; }; | |
with lib; | |
with builtins; | |
let | |
appName = "Docker.app"; | |
cfg = config.programs.docker; |
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
# macOS support for 10.10 or higher | |
if [[ "$(uname -s)" = "Darwin" ]]; then | |
if [[ $(($(sw_vers -productVersion | cut -d '.' -f 2))) -lt 10 ]]; then | |
echo "$0: macOS $(sw_vers -productVersion) is not supported, upgrade to 10.10 or higher" | |
exit 1 | |
fi | |
printf '\e[1;31mSwitching to the Multi-User Darwin Installer\e[0m\n' | |
exec "$self/install-darwin-multi-user" | |
exit 0 |
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, ... }: | |
let | |
plugins = import <plugins>; | |
udp = { host, port ? 1194 }: { host = host; port = port; type = "udp"; }; | |
tcp = { host, port ? 443 }: { host = host; port = port; type = "tcp-client"; }; | |
in { | |
imports = [ plugins.viscosity ]; | |
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
{ | |
"layouts": [ | |
"tall", | |
"wide", | |
"fullscreen", | |
"column" | |
], | |
"Valid modifiers are": [ | |
"option", | |
"shift", |
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
hm switch osx | |
Success: Logged in as [email protected]. | |
trace: x is a derivation, name Hammerspoon-0.9.57, { __ignoreNulls=; __impureHostDeps=; __propagatedImpureHostDeps=; __propagatedSandboxProfile=; __sandboxProfile=; all=; args=; buildCommand=; buildInputs=; builder=; configureFlags=; drvAttrs=; drvPath=; meta=; name=; nativeBuildInputs=; out=; outPath=; outputName=; outputUnspecified=; overrideAttrs=; passAsFile=; passthru=; propagatedBuildInputs=; propagatedNativeBuildInputs=; stdenv=; system=; type=; userHook= } | |
these derivations will be built: | |
/nix/store/cvad4cclqgsx0fbc91qyp483rg6q2kdq-Hammerspoon-0.9.57.drv | |
/nix/store/j5svgb7fq59slxbck01h2daqcdzxksgc-home-manager-path.drv | |
/nix/store/mqwy6b2cx8zziy819x544s53klz2vwrh-activation-script.drv | |
/nix/store/4786wfzzbfn07617zxgyc2h96mii9ylw-home-manager-generation.drv | |
building path(s) ‘/nix/store/6pk006r6934bb0my3zi1q1m0ayyrx7s3-Hammerspoon-0.9.57’ | |
poop |
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; }; | |
let | |
version = "0.9.57"; | |
release = pkgs.fetchzip { | |
name = "Hammerspoon.app"; | |
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/${version}/Hammerspoon-${version}.zip"; |
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; }; | |
let | |
version = "0.9.57"; | |
release = pkgs.fetchzip { | |
name = "Hammerspoon.app"; | |
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/${version}/Hammerspoon-${version}.zip"; |
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; }; | |
let | |
version = "0.9.57"; | |
release = pkgs.fetchzip { | |
name = "Hammerspoon.app"; | |
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/${version}/Hammerspoon-${version}.zip"; |
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.packages = [ pkgs.fetchzip { | |
name = "Applications/Hammerspoon.app"; | |
url = "https://github.com/Hammerspoon/hammerspoon/releases/download/0.9.57/Hammerspoon-0.9.57.zip"; | |
sha256 = "12j9vylcxb7i3bn0v5x6zbxmnyyp7gh4am4vg48yv3hb54i73klx"; | |
}]; |