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.

129 lines
2.8 KiB

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