seeing if it's easier to fork tA's nixos laptop config rather than make one from scratch (more or less).
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

45 řádky
1.2KB

  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. initExtraBeforeCompInit = ''
  23. export PATH='/run/wrappers/bin:/home/thorn/.nix-profile/bin:/etc/profiles/per-user/thorn/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/thorn/.config/zsh/plugins/fast-syntax-highlighting'
  24. '';
  25. initExtra = ''
  26. setopt promptsubst
  27. autoload -U colors && colors
  28. export PROMPT='%{$fg[white]%}%B$(swatch)%b %{$fg[blue]%}%2~ %{$fg[green]%}%B>%b '
  29. '';
  30. shellAliases = {
  31. nf = "neofetch --gtk2 off --gtk3 off --ascii_bold on";
  32. ls = "ls --color";
  33. ec = "emacsclient";
  34. };
  35. plugins = (map wrapPlugin [
  36. { name = "fast-syntax-highlighting";
  37. pkg = pkgs.zsh-fast-syntax-highlighting;
  38. }
  39. ]);
  40. };
  41. programs.dircolors.enableZshIntegration = true;
  42. }