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.

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