Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. programs.zsh = {
  2. enable = true;
  3. ohMyZsh = let
  4. packages = [
  5. {
  6. owner = "nwuensche";
  7. repo = "dotFiles";
  8. rev = "1.0";
  9. sha256 = "0n8xagqilkw13h20knb6by6ycpqjrx0qdjnpiaizbfkj8j5p4nyj";
  10. }
  11. ];
  12.  
  13. fetchToFolder = { repo, ...}@attrs:
  14. pkgs.fetchFromGitHub (attrs // {
  15. extraPostFetch = ''
  16. tmp=$(mktemp -d)
  17. mv $out/* $tmp
  18. mkdir $out/${repo}
  19. mv $tmp/* $out/${repo}
  20. '';
  21. });
  22. custom = pkgs.buildEnv {
  23. name = "zsh-custom";
  24. paths = builtins.map fetchToFolder packages;
  25. };
  26. in
  27. {
  28. enable = true;
  29. custom = custom.outPath;
  30. theme = "terminalStuff/agnoster";
  31. plugins = [ "git" "pass" "brew" "colored-man" "colorize" ];
  32. };
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement