Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- programs.zsh = {
- enable = true;
- ohMyZsh = let
- packages = [
- {
- owner = "nwuensche";
- repo = "dotFiles";
- rev = "1.0";
- sha256 = "0n8xagqilkw13h20knb6by6ycpqjrx0qdjnpiaizbfkj8j5p4nyj";
- }
- ];
- fetchToFolder = { repo, ...}@attrs:
- pkgs.fetchFromGitHub (attrs // {
- extraPostFetch = ''
- tmp=$(mktemp -d)
- mv $out/* $tmp
- mkdir $out/${repo}
- mv $tmp/* $out/${repo}
- '';
- });
- custom = pkgs.buildEnv {
- name = "zsh-custom";
- paths = builtins.map fetchToFolder packages;
- };
- in
- {
- enable = true;
- custom = custom.outPath;
- theme = "terminalStuff/agnoster";
- plugins = [ "git" "pass" "brew" "colored-man" "colorize" ];
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement