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.

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