I showed you my source code, pls respond
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.

117 lines
2.4 KiB

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { pkgs, ... }:
  3. let
  4. myEmacs = pkgs.emacsWithPackagesFromUsePackage {
  5. config = ../README.org;
  6. package = pkgs.emacsGcc;
  7. alwaysEnsure = true;
  8. alwaysTangle = true;
  9. extraEmacsPackages = epkgs: [
  10. # Required packages...
  11. epkgs.exwm
  12. epkgs.evil
  13. epkgs.evil-collection
  14. epkgs.evil-surround
  15. epkgs.evil-nerd-commenter
  16. epkgs.general
  17. epkgs.which-key
  18. # Optional packages.
  19. epkgs.org
  20. epkgs.org-roam
  21. epkgs.org-roam-server
  22. epkgs.org-drill
  23. epkgs.org-pomodoro
  24. epkgs.writegood-mode
  25. epkgs.ox-hugo
  26. epkgs.ox-reveal
  27. epkgs.password-store
  28. epkgs.mu4e-alert
  29. epkgs.dired-single
  30. epkgs.all-the-icons
  31. epkgs.all-the-icons-dired
  32. epkgs.emojify
  33. epkgs.eshell-prompt-extras
  34. epkgs.vterm
  35. epkgs.magit
  36. epkgs.hydra
  37. epkgs.elfeed
  38. epkgs.nix-mode
  39. epkgs.projectile
  40. epkgs.lsp-mode
  41. epkgs.lsp-ui
  42. epkgs.company
  43. epkgs.ccls
  44. epkgs.go-mode
  45. epkgs.pretty-mode
  46. epkgs.rustic
  47. epkgs.plantuml-mode
  48. epkgs.ivy
  49. epkgs.counsel
  50. epkgs.ivy-rich
  51. epkgs.ivy-posframe
  52. epkgs.ivy-prescient
  53. epkgs.desktop-environment
  54. epkgs.doom-themes
  55. epkgs.doom-modeline
  56. ];
  57. };
  58. in {
  59. home.packages = [
  60. pkgs.nitrogen
  61. pkgs.autorandr
  62. pkgs.pass
  63. pkgs.mu
  64. pkgs.isync
  65. pkgs.aspell
  66. pkgs.aspellDicts.en
  67. pkgs.aspellDicts.en-science
  68. pkgs.aspellDicts.en-computers
  69. pkgs.brightnessctl
  70. pkgs.plantuml
  71. pkgs.nixfmt
  72. ];
  73. programs.emacs = {
  74. enable = true;
  75. package = myEmacs;
  76. };
  77. xsession = {
  78. enable = true;
  79. windowManager.command = ''
  80. ${pkgs.nitrogen}/bin/nitrogen --restore
  81. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  82. ${myEmacs}/bin/emacsclient -c
  83. '';
  84. };
  85. home.file.".xinitrc" = {
  86. text = ''
  87. exec ./.xsession
  88. '';
  89. };
  90. home.file.".mbsyncrc" = {
  91. text = ''
  92. IMAPStore xyz-remote
  93. Host mail.chrishayward.xyz
  94. User chris@chrishayward.xyz
  95. PassCmd "pass chrishayward.xyz/chris"
  96. SSLType IMAPS
  97. MaildirStore xyz-local
  98. Path ~/.cache/mail/
  99. Inbox ~/.cache/mail/inbox
  100. SubFolders Verbatim
  101. Channel xyz
  102. Far :xyz-remote:
  103. Near :xyz-local:
  104. Patterns * !Archives
  105. Create Both
  106. Expunge Both
  107. SyncState *
  108. '';
  109. };
  110. }