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.go-mode
  44. epkgs.pretty-mode
  45. epkgs.rustic
  46. epkgs.plantuml-mode
  47. epkgs.ivy
  48. epkgs.counsel
  49. epkgs.ivy-rich
  50. epkgs.ivy-posframe
  51. epkgs.ivy-prescient
  52. epkgs.desktop-environment
  53. epkgs.doom-themes
  54. epkgs.doom-modeline
  55. ];
  56. };
  57. in {
  58. home.packages = [
  59. pkgs.nitrogen
  60. pkgs.autorandr
  61. pkgs.hugo
  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. }