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.

126 lines
2.7 KiB

3 years ago
3 years ago
  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.ob-http
  26. epkgs.ox-hugo
  27. epkgs.ox-reveal
  28. epkgs.password-store
  29. epkgs.docker
  30. epkgs.dockerfile-mode
  31. epkgs.mu4e-alert
  32. epkgs.dired-single
  33. epkgs.all-the-icons
  34. epkgs.all-the-icons-dired
  35. epkgs.emojify
  36. epkgs.eshell-prompt-extras
  37. epkgs.vterm
  38. epkgs.magit
  39. epkgs.hydra
  40. epkgs.elfeed
  41. epkgs.nix-mode
  42. epkgs.projectile
  43. epkgs.lsp-mode
  44. epkgs.lsp-ui
  45. epkgs.company
  46. epkgs.ccls
  47. epkgs.go-mode
  48. epkgs.pretty-mode
  49. epkgs.rustic
  50. epkgs.plantuml-mode
  51. epkgs.protobuf-mode
  52. epkgs.ivy
  53. epkgs.counsel
  54. epkgs.ivy-rich
  55. epkgs.ivy-posframe
  56. epkgs.ivy-prescient
  57. epkgs.desktop-environment
  58. epkgs.doom-themes
  59. epkgs.doom-modeline
  60. ];
  61. };
  62. in {
  63. home.packages = [
  64. pkgs.nitrogen
  65. pkgs.autorandr
  66. pkgs.pass
  67. pkgs.mu
  68. pkgs.isync
  69. pkgs.aspell
  70. pkgs.aspellDicts.en
  71. pkgs.aspellDicts.en-science
  72. pkgs.aspellDicts.en-computers
  73. pkgs.texlive.combined.scheme-full
  74. pkgs.brightnessctl
  75. pkgs.plantuml
  76. pkgs.nixfmt
  77. ];
  78. programs.emacs = {
  79. enable = true;
  80. package = myEmacs;
  81. };
  82. xsession = {
  83. enable = true;
  84. windowManager.command = ''
  85. ${pkgs.nitrogen}/bin/nitrogen --restore
  86. ${myEmacs}/bin/emacs --daemon -f exwm-enable
  87. ${myEmacs}/bin/emacsclient -c
  88. '';
  89. };
  90. home.file.".xinitrc" = {
  91. text = ''
  92. exec ./.xsession
  93. '';
  94. };
  95. # Deploy the authinfo file.
  96. home.file.".authinfo.gpg".source = ../config/authinfo.gpg;
  97. # Deploy the isync configuration file.
  98. home.file.".mbsyncrc" = {
  99. text = ''
  100. IMAPStore xyz-remote
  101. Host mail.chrishayward.xyz
  102. User chris@chrishayward.xyz
  103. PassCmd "pass chrishayward.xyz/chris"
  104. SSLType IMAPS
  105. MaildirStore xyz-local
  106. Path ~/.cache/mail/
  107. Inbox ~/.cache/mail/inbox
  108. SubFolders Verbatim
  109. Channel xyz
  110. Far :xyz-remote:
  111. Near :xyz-local:
  112. Patterns * !Archives
  113. Create Both
  114. Expunge Both
  115. SyncState *
  116. '';
  117. };
  118. }