seeing if it's easier to fork tA's nixos laptop config rather than make one from scratch (more or less).
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

home.nix 1.2KB

3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }