mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
add am.sh for apple music
This commit is contained in:
parent
a35b13e5d8
commit
f51d095540
2 changed files with 13 additions and 1 deletions
10
home.nix
10
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";
|
||||
|
|
|
@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue