seeing if it's easier to fork tA's nixos laptop config rather than make one from scratch (more or less).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
918B

  1. { pkgs, config, ... } :
  2. let
  3. wrapPlugin = { name, pkg }: {
  4. inherit name;
  5. src = pkg + "/share/zsh/site-functions";
  6. };
  7. in {
  8. home.packages = [
  9. pkgs.swatch
  10. ];
  11. programs.zsh = {
  12. enable = true;
  13. enableAutosuggestions = true;
  14. enableCompletion = true;
  15. dotDir = ".config/zsh";
  16. history = {
  17. expireDuplicatesFirst = true;
  18. extended = true;
  19. ignoreDups = true;
  20. share = true;
  21. };
  22. initExtra = ''
  23. setopt promptsubst
  24. autoload -U colors && colors
  25. export PROMPT='%{$fg[white]%}%B$(swatch)%b %{$fg[blue]%}%2~ %{$fg[green]%}%B>%b '
  26. '';
  27. shellAliases = {
  28. nf = "neofetch --gtk2 off --gtk3 off --ascii_bold on";
  29. ls = "ls --color";
  30. };
  31. plugins = (map wrapPlugin [
  32. { name = "fast-syntax-highlighting";
  33. pkg = pkgs.zsh-fast-syntax-highlighting;
  34. }
  35. ]);
  36. };
  37. programs.dircolors.enableZshIntegration = true;
  38. }