diff --git a/home.nix b/home.nix index b5a12ff..61ffca9 100644 --- a/home.nix +++ b/home.nix @@ -22,6 +22,16 @@ in { pinentry-program "${pkgs.pinentry_mac}/Applications/pinentry-mac.app/Contents/MacOS/pinentry-mac" ''; + home.file.".config/zsh/am.sh" = mkIf stdenv.isDarwin { + executable = true; + source = let rev = "27353ec55abac8b5d73b8a061fb87f305c663adb"; + in builtins.fetchurl { + url = + "https://raw.githubusercontent.com/mcthomas/Apple-Music-CLI-Player/${rev}/src/am.sh"; + sha256 = "sha256-78zRpNg7/OR7p8dpsJt6Xc4j0Y+8zSUtm/PT94nf03M="; + }; + }; + home.keyboard = { layout = "us"; variant = "colemak"; diff --git a/programs.nix b/programs.nix index 2c50a0c..671f31c 100644 --- a/programs.nix +++ b/programs.nix @@ -133,10 +133,12 @@ cd = "z"; l = "ls -1"; web = "open -a Safari"; + email = "open -a Mail"; + o = "open -a"; + am = lib.mkIf pkgs.stdenv.isDarwin "zsh ~/.config/zsh/am.sh"; }; }; home-manager.enable = true; - }; }